DEFAULT static method
TestConfiguration
DEFAULT(
- Iterable<
StepDefinitionGeneric< steps, {World> > - String featurePath = r'features\\.*\.feature',
Provide a configuration object with default settings such as the reports and feature file location Additional setting on the configuration object can be set on the returned instance.
Implementation
static TestConfiguration DEFAULT(
Iterable<StepDefinitionGeneric<World>> steps, {
String featurePath = r'features\\.*\.feature',
}) {
return TestConfiguration()
..features = [RegExp(featurePath)]
..reporters = [
StdoutReporter(MessageLevel.error),
ProgressReporter(),
TestRunSummaryReporter(),
JsonReporter(path: './report.json')
]
..stepDefinitions = steps
..stopAfterTestFailed = false;
}