import {TestRunnerAdapter} from '@serenity-js/core/lib/io'
public interface | source

TestRunnerAdapter

Describes an adapter needed to run a given type of tests programmatically

Member Summary

Public Members
public

load: function(pathsToScenarios: string[]): Promise<void>

Loads test scenarios.

public abstract

run: function(): Promise<void>

Runs loaded test scenarios.

public

scenarioCount: function(): number

Returns the number of loaded scenarios

public abstract

successThreshold: Outcome | { Code: number }

Scenario success threshold for this test runner.

Public Members

public load: function(pathsToScenarios: string[]): Promise<void> source

Loads test scenarios.

public abstract run: function(): Promise<void> source

Runs loaded test scenarios.

Throws:

LogicError

If called before load

public scenarioCount: function(): number source

Returns the number of loaded scenarios

Throws:

LogicError

If called before load

public abstract successThreshold: Outcome | { Code: number } source

Scenario success threshold for this test runner.