FlutterTestConfiguration class
- Implementers
Constructors
-
FlutterTestConfiguration({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<Hook> ? hooks, Iterable<Reporter> reporters = const [], CreateWorld? createWorld, bool semanticsEnabled = true, bool waitImplicitlyAfterAction = false, Iterable<CustomParameter> ? customStepParameterDefinitions, Iterable<StepDefinitionGeneric< ? stepDefinitions})World> >
Properties
- createWorld → CreateWorld?
-
An optional function to create a world object for each scenario.
finalinherited
-
customStepParameterDefinitions
→ Iterable<
CustomParameter> ? -
Any user defined step parameters
finalinherited
- defaultTimeout → Duration
-
The default step timeout - this can be override when definition a step definition
finalinherited
- featureDefaultLanguage → String
-
The default feature language
finalinherited
- featureFileMatcher → FeatureFileMatcher
-
finalinherited
- featureFileReader → FeatureFileReader
-
finalinherited
-
features
→ Iterable<
Pattern> -
The path(s) to all the features.
All three
Pattern
s are supported: RegExp, String,Glob
.finalinherited - getAttachmentManager → CreateAttachmentManager
-
used to get a new instance of an attachment manager class that is passed to the World context
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
hooks
→ Iterable<
Hook> ? -
Hooks that are run at certain points in the execution cycle
finalinherited
- order → ExecutionOrder
-
The execution order of features - this default to random to avoid any inter-test dependencies
finalinherited
-
reporters
→ Iterable<
Reporter> -
a list of reporters to use.
Built-in reporters:
finalinherited
- 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).
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticsEnabled → bool
-
Enable semantics in a test by creating a SemanticsHandle.
See: testWidgets and WidgetController.ensureSemantics.
final
-
stepDefinitions
→ Iterable<
StepDefinitionGeneric< ?World> > -
The user defined step definitions that are matched with written steps in the features
finalinherited
- stepMaxRetries → int
-
When a step fails, it will retry this number of times.
When it still fails after these tries the step will fail.
finalinherited
- stopAfterTestFailed → bool
-
the program will stop after any test failed
finalinherited
- 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
finalinherited
- waitImplicitlyAfterAction → bool
-
Set to
True
to wait implicit for pumpAndSettle() / waitForAppToSettle() functions after performing actions Defaults to falsefinal
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
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
standard(
Iterable< StepDefinitionGeneric< steps) → FlutterTestConfigurationWorld> > - Provide a configuration object with default settings
-
standardWeb(
Iterable< StepDefinitionGeneric< steps) → FlutterTestConfigurationWorld> > - Provide a configuration object with default settings for web