TestConfiguration class

Constructors

TestConfiguration()

Properties

createWorld CreateWorld?
An optional function to create a world object for each scenario.
getter/setter pair
customStepParameterDefinitions Iterable<CustomParameter>?
Any user defined step parameters
getter/setter pair
defaultTimeout Duration
The default step timeout - this can be override when definition a step definition
getter/setter pair
featureDefaultLanguage String
The default feature language
getter/setter pair
featureFileMatcher FeatureFileMatcher
getter/setter pair
featureFileReader FeatureFileReader
getter/setter pair
features Iterable<Pattern>
The path(s) to all the features. All three Patterns are supported: RegExp, String, Glob.
getter/setter pair
getAttachmentManager CreateAttachmentManager
used to get a new instance of an attachment manager class that is passed to the World context
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hooks Iterable<Hook>?
Hooks that are run at certain points in the execution cycle
getter/setter pair
order ExecutionOrder
The execution order of features - this default to random to avoid any inter-test dependencies
getter/setter pair
reporters Iterable<Reporter>?
a list of reporters to use. Built-in reporters:
getter/setter pair
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
getter/setter pair
stopAfterTestFailed bool
the program will stop after any test failed
getter/setter pair
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
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepare() → void
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

Static Methods

DEFAULT(Iterable<StepDefinitionGeneric<World>> steps, {String featurePath = r'features\\.*\.feature'}) TestConfiguration
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.