TestConfiguration.standard constructor
TestConfiguration.standard(
- Iterable<
StepDefinitionGeneric< steps, {World> > - String featurePath = r'features\\.+\.feature',
- String featureDefaultLanguage = 'en',
- ExecutionOrder order = ExecutionOrder.random,
- Duration defaultTimeout = const Duration(seconds: 10),
- FeatureFileMatcher featureFileMatcher = const IoFeatureFileAccessor(),
- FeatureFileReader featureFileReader = const IoFeatureFileAccessor(),
- bool stopAfterTestFailed = false,
- String? tagExpression,
- Iterable<
CustomParameter> ? customStepParameterDefinitions, - Iterable<
Hook> ? hooks, - CreateWorld? createWorld,
- int stepMaxRetries = 0,
- 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;