TestConfiguration class

Constructors

TestConfiguration({Iterable<Pattern> features = const <Pattern>[], 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<StepDefinitionGeneric<World>>? stepDefinitions, Iterable<CustomParameter>? customStepParameterDefinitions, Iterable<Hook>? hooks, Iterable<Reporter> reporters = const [], CreateWorld? createWorld, int stepMaxRetries = 0, Duration retryDelay = const Duration(seconds: 2)})
TestConfiguration.standard(Iterable<StepDefinitionGeneric<World>> steps, {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.

Properties

createWorld CreateWorld?
An optional function to create a world object for each scenario.
final
customStepParameterDefinitions Iterable<CustomParameter>?
Any user defined step parameters
final
defaultTimeout Duration
The default step timeout - this can be override when definition a step definition
final
featureDefaultLanguage String
The default feature language
final
featureFileMatcher FeatureFileMatcher
final
featureFileReader FeatureFileReader
final
features Iterable<Pattern>
The path(s) to all the features. All three Patterns are supported: RegExp, String, Glob.
final
getAttachmentManager CreateAttachmentManager
used to get a new instance of an attachment manager class that is passed to the World context
no setter
hashCode int
The hash code for this object.
no setterinherited
hooks Iterable<Hook>?
Hooks that are run at certain points in the execution cycle
final
order ExecutionOrder
The execution order of features - this default to random to avoid any inter-test dependencies
final
reporters Iterable<Reporter>
a list of reporters to use. Built-in reporters:
final
retryDelay Duration
When a step fails, it will wait this long before retrying. For instance, you know that when it fails, it can take a bit longer (async).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stepDefinitions Iterable<StepDefinitionGeneric<World>>?
The user defined step definitions that are matched with written steps in the features
final
stepMaxRetries int
When a step fails, it will retry this number of times. When it still fails after these tries the step will fail.
final
stopAfterTestFailed bool
the program will stop after any test failed
final
tagExpression String?
a filter to limit the features that are run based on tags see https://docs.cucumber.io/cucumber/tag-expressions/ for expression syntax
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepare() TestConfiguration
used to allow for custom configuration to ensure framework specific configuration is in place
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited