TestConfiguration.standard constructor

TestConfiguration.standard(
  1. Iterable<StepDefinitionGeneric<World>> steps, {
  2. String featurePath = r'features\\.+\.feature',
  3. String featureDefaultLanguage = 'en',
  4. ExecutionOrder order = ExecutionOrder.random,
  5. Duration defaultTimeout = const Duration(seconds: 10),
  6. FeatureFileMatcher featureFileMatcher = const IoFeatureFileAccessor(),
  7. FeatureFileReader featureFileReader = const IoFeatureFileAccessor(),
  8. bool stopAfterTestFailed = false,
  9. String? tagExpression,
  10. Iterable<CustomParameter>? customStepParameterDefinitions,
  11. Iterable<Hook>? hooks,
  12. CreateWorld? createWorld,
  13. int stepMaxRetries = 0,
  14. Duration retryDelay = const Duration(seconds: 2),
})

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

TestConfiguration.standard(
  Iterable<StepDefinitionGeneric<World>> steps, {
  String featurePath = r'features\\.+\.feature',
  this.featureDefaultLanguage = 'en',
  this.order = ExecutionOrder.random,
  this.defaultTimeout = const Duration(seconds: 10),
  this.featureFileMatcher = const IoFeatureFileAccessor(),
  this.featureFileReader = const IoFeatureFileAccessor(),
  this.stopAfterTestFailed = false,
  this.tagExpression,
  this.customStepParameterDefinitions,
  this.hooks,
  this.createWorld,
  this.stepMaxRetries = 0,
  this.retryDelay = const Duration(seconds: 2),
})  : features = [RegExp(featurePath)],
      reporters = [
        StdoutReporter(MessageLevel.error),
        ProgressReporter(),
        TestRunSummaryReporter(),
        JsonReporter(),
      ],
      stepDefinitions = steps;