onBeforeRun method

  1. @override
Future<void> onBeforeRun(
  1. TestConfiguration config
)

Run before any scenario in a test run have executed

Implementation

@override
Future<void> onBeforeRun(TestConfiguration config) async {
  if (!(await Directory(dumpFolderPath).exists())) {
    await Directory(dumpFolderPath).create();
  }
}