DEFAULT static method

TestConfiguration DEFAULT(
  1. Iterable<StepDefinitionGeneric<World>> steps, {
  2. 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;
}