MochaAdapter
Implements
- TestRunnerAdapter
Index
Constructors
Methods
Constructors
constructor
Parameters
config: MochaConfig
loader: ModuleLoader
Returns MochaAdapter
Methods
successThreshold
Scenario success threshold for this test runner.
Returns Outcome | { Code: number }
load
Loads test scenarios.
Parameters
pathsToScenarios: string[]
Returns Promise<void>
scenarioCount
Returns the number of loaded scenarios
Returns number
run
Runs loaded test scenarios.
Returns Promise<void>
Allows for programmatic execution of Mocha test scenarios, using SerenityReporterForMocha to report progress.
Learn more