UNPKG

1.65 kBTypeScriptView Raw
1import { INSTRUMENTER_CONSTANTS, StrykerOptions } from '@stryker-mutator/api/core';
2import { Logger } from '@stryker-mutator/api/logging';
3import { I } from '@stryker-mutator/util';
4import { TestRunner, DryRunResult, DryRunOptions, MutantRunOptions, MutantRunResult, TestRunnerCapabilities, MutantActivation } from '@stryker-mutator/api/test-runner';
5import { Context } from 'mocha';
6import { MochaOptionsLoader } from './mocha-options-loader.js';
7import { MochaAdapter } from './mocha-adapter.js';
8export declare class MochaTestRunner implements TestRunner {
9 private readonly log;
10 private readonly options;
11 private readonly loader;
12 private readonly mochaAdapter;
13 private mocha;
14 private readonly instrumenterContext;
15 private originalGrep?;
16 beforeEach?: (context: Context) => void;
17 static inject: ["logger", "options", "loader", "mochaAdapter", "globalNamespace"];
18 private loadedEnv;
19 constructor(log: Logger, options: StrykerOptions, loader: I<MochaOptionsLoader>, mochaAdapter: I<MochaAdapter>, globalNamespace: typeof INSTRUMENTER_CONSTANTS.NAMESPACE | '__stryker2__');
20 capabilities(): Promise<TestRunnerCapabilities>;
21 init(): Promise<void>;
22 private setIfDefined;
23 dryRun({ coverageAnalysis, disableBail }: DryRunOptions): Promise<DryRunResult>;
24 mutantRun({ activeMutant, testFilter, disableBail, hitLimit, mutantActivation }: MutantRunOptions): Promise<MutantRunResult>;
25 run(disableBail: boolean, activeMutantId?: string, mutantActivation?: MutantActivation): Promise<DryRunResult>;
26 dispose(): Promise<void>;
27 private runMocha;
28}
29//# sourceMappingURL=mocha-test-runner.d.ts.map
\No newline at end of file