DEFAULT static method
FlutterDriverTestConfiguration
DEFAULT(
- Iterable<
StepDefinitionGeneric< steps, {World> > - String featurePath = 'features/*.*.feature',
- String targetAppPath = 'test_driver/app.dart',
override
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
static FlutterDriverTestConfiguration DEFAULT(
Iterable<StepDefinitionGeneric<World>> steps, {
String featurePath = 'features/*.*.feature',
String targetAppPath = 'test_driver/app.dart',
}) {
return FlutterDriverTestConfiguration()
..features = [RegExp(featurePath)]
..reporters = [
StdoutReporter(MessageLevel.error),
ProgressReporter(),
TestRunSummaryReporter(),
JsonReporter(path: './report.json'),
FlutterDriverReporter(
logErrorMessages: true,
logInfoMessages: false,
logWarningMessages: false,
),
]
..targetAppPath = targetAppPath
..stepDefinitions = steps
..restartAppBetweenScenarios = true;
}