DEFAULT static method

FlutterTestConfiguration DEFAULT(
  1. Iterable<StepDefinitionGeneric<World>> steps, {
  2. String featurePath = 'features/*.*.feature',
  3. String targetAppPath = 'test_driver/app.dart',
})

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 FlutterTestConfiguration DEFAULT(
  Iterable<StepDefinitionGeneric<World>> steps, {
  String featurePath = 'features/*.*.feature',
  String targetAppPath = 'test_driver/app.dart',
}) {
  return FlutterTestConfiguration()
    ..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
    ..stopAfterTestFailed = true;
}