runTest function
Future<void>
runTest({
- required WidgetTester tester,
- required TestConfiguration testConfiguration,
- 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);
}