@stryker-mutator/mocha-runner

  • Version 6.0.2
  • Published
  • 147 kB
  • 3 dependencies
  • Apache-2.0 license

Install

npm i @stryker-mutator/mocha-runner
yarn add @stryker-mutator/mocha-runner
pnpm add @stryker-mutator/mocha-runner

Overview

A plugin to use the mocha test runner in Stryker, the JavaScript mutation testing framework

Index

Variables

variable createMochaTestRunner

const createMochaTestRunner: {
(injector: Injector<PluginContext>): MochaTestRunner;
inject: ['$injector'];
};

    variable strykerPlugins

    const strykerPlugins: any[];

      variable strykerValidationSchema

      const strykerValidationSchema: any;

        Functions

        function createMochaTestRunnerFactory

        createMochaTestRunnerFactory: (
        namespace?: typeof INSTRUMENTER_CONSTANTS.NAMESPACE | '__stryker2__'
        ) => { (injector: Injector<PluginContext>): MochaTestRunner; inject: ['$injector'] };

          Classes

          class MochaTestRunner

          class MochaTestRunner implements TestRunner {}

            constructor

            constructor(
            log: Logger,
            options: StrykerOptions,
            loader: I<MochaOptionsLoader>,
            mochaAdapter: I<MochaAdapter>,
            globalNamespace: any
            );

              property beforeEach

              beforeEach?: (context: Context) => void;

                property inject

                static inject: any;

                  method capabilities

                  capabilities: () => Promise<TestRunnerCapabilities>;

                    method dispose

                    dispose: () => Promise<void>;

                      method dryRun

                      dryRun: ({
                      coverageAnalysis,
                      disableBail,
                      }: DryRunOptions) => Promise<DryRunResult>;

                        method init

                        init: () => Promise<void>;

                          method mutantRun

                          mutantRun: ({
                          activeMutant,
                          testFilter,
                          disableBail,
                          hitLimit,
                          mutantActivation,
                          }: MutantRunOptions) => Promise<MutantRunResult>;

                            method run

                            run: (
                            disableBail: boolean,
                            activeMutantId?: string,
                            mutantActivation?: MutantActivation
                            ) => Promise<DryRunResult>;

                              Package Files (3)

                              Dependencies (3)

                              Dev Dependencies (3)

                              Peer Dependencies (2)

                              Badge

                              To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                              You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@stryker-mutator/mocha-runner.

                              • Markdown
                                [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@stryker-mutator/mocha-runner)
                              • HTML
                                <a href="https://www.jsdocs.io/package/@stryker-mutator/mocha-runner"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>