Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stryker-mutator/api

Package Overview
Dependencies
Maintainers
4
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stryker-mutator/api

The api for the extendable JavaScript mutation testing framework Stryker

  • 4.5.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
136K
increased by7.12%
Maintainers
4
Weekly downloads
 
Created

What is @stryker-mutator/api?

@stryker-mutator/api is a part of the Stryker Mutator framework, which is used for mutation testing in JavaScript and TypeScript projects. It provides a set of APIs that allow developers to integrate and extend the mutation testing capabilities of Stryker.

What are @stryker-mutator/api's main functionalities?

Mutator API

The Mutator API allows developers to create custom mutators that define how code should be mutated during testing. This is useful for extending the mutation testing capabilities to cover more specific or custom scenarios.

const { Mutator } = require('@stryker-mutator/api/mutant');

class MyMutator extends Mutator {
  mutate(node) {
    // Custom mutation logic
  }
}

Reporter API

The Reporter API provides a way to create custom reporters that can handle and display the results of mutation testing. This allows for customized reporting formats and integration with other tools.

const { Reporter } = require('@stryker-mutator/api/report');

class MyReporter extends Reporter {
  onMutantTested(result) {
    console.log(`Mutant ${result.id} tested with status ${result.status}`);
  }
}

Test Framework API

The Test Framework API allows developers to integrate custom test frameworks with Stryker. This is useful for supporting additional testing frameworks that are not natively supported by Stryker.

const { TestFramework } = require('@stryker-mutator/api/test_framework');

class MyTestFramework extends TestFramework {
  constructor() {
    super();
    // Custom test framework initialization
  }
}

Other packages similar to @stryker-mutator/api

Keywords

FAQs

Package last updated on 06 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc