UNPKG

@serenity-js/core

Version:

The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure

36 lines (30 loc) 827 B
import type { Outcome } from '../model'; /** * Describes an adapter needed to run a given type of tests programmatically * * @group Integration */ export interface TestRunnerAdapter { /** * Loads test scenarios. */ load(pathsToScenarios: string[]): Promise<void>; /** * Returns the number of loaded scenarios * * @throws [`LogicError`](https://serenity-js.org/api/core/class/LogicError/) * If called before `load` */ scenarioCount(): number; /** * Runs loaded test scenarios. * * @throws [`LogicError`](https://serenity-js.org/api/core/class/LogicError/) * If called before `load` */ run(): Promise<void>; /** * Scenario success threshold for this test runner. */ successThreshold(): Outcome | { Code: number }; }