runTest function

Future<void> runTest({
  1. required WidgetTester tester,
  2. required TestConfiguration testConfiguration,
  3. WidgetCucumberWorld? customWorld,
})

Implementation

Future<void> runTest(
    {required WidgetTester tester,
    required TestConfiguration testConfiguration,
    WidgetCucumberWorld? customWorld}) async {
  final config = testConfiguration.copyWith(
      createWorld: (TestConfiguration config) => Future.value(currentWorld =
          customWorld ??
              WidgetCucumberWorld(tester, tester.ensureSemantics())));
  return GherkinRunner().execute(config);
}