onBeforeScenario method

  1. @override
Future<void> onBeforeScenario(
  1. TestConfiguration config,
  2. String scenario,
  3. Iterable<Tag> tags
)

Run before a scenario and it steps are executed

Implementation

@override
Future<void> onBeforeScenario(
    TestConfiguration config, String scenario, Iterable<Tag> tags) async {
  currentWorld.scenarioName = scenario;
  currentWorld.reportFolderPath = '${Directory.current.path}/$dumpFolderPath';
}