GherkinIntegrationTestRunner constructor
GherkinIntegrationTestRunner({
- required FlutterTestConfiguration configuration,
- required StartAppFn appMainFunction,
- required Timeout scenarioExecutionTimeout,
- AppLifecyclePumpHandlerFn? appLifecyclePumpHandler,
- LiveTestWidgetsFlutterBindingFramePolicy? framePolicy,
A Gherkin test runner that uses WidgetTester to instrument the app under test.
configuration the configuration for the test run.
appMainFunction a function to start the app under test.
appLifecyclePumpHandler a function to determine how to pump the app during various lifecycle phases,
if null a default handler is used see _appLifecyclePhasePumper
.
scenarioExecutionTimeout the default execution timeout for the whole test run.
Implementation
GherkinIntegrationTestRunner({
required this.configuration,
required this.appMainFunction,
required this.scenarioExecutionTimeout,
this.appLifecyclePumpHandler,
this.framePolicy,
}) {
configuration.prepare();
_registerReporters(configuration.reporters);
_hook = _registerHooks(configuration.hooks);
_customParameters =
_registerCustomParameters(configuration.customStepParameterDefinitions);
_executableSteps = _registerStepDefinitions(
configuration.stepDefinitions!,
_customParameters!,
);
}