You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an application developed on Android, which I am running a few tests using the package, everything works correctly.
The problem is, when I am running all the tests, and one fails, it stays on the screen where the test failed, and it does not restart for the next test.
Is it possible to implement something similar or an option that allows doing something similar? I tried using hooks but it didn't work
Hooks code:
class ResetAppBetweenScenariosHook extends Hook {
late FlutterRunProcessHandler? _flutterRunProcessHandler;
@override
Future<void> onAfterStep(World world, String step, StepResult stepResult) async {
if (stepResult.result == StepExecutionResult.fail ||
stepResult.result == StepExecutionResult.error ||
stepResult.result == StepExecutionResult.timeout) {
stdout.writeln('Restarting Flutter app');
final myAppWorld = world as FlutterWorld;
await myAppWorld.restartApp();
}
return super.onAfterStep(world, step, stepResult);
}
}
The text was updated successfully, but these errors were encountered:
I have an application developed on Android, which I am running a few tests using the package, everything works correctly.
The problem is, when I am running all the tests, and one fails, it stays on the screen where the test failed, and it does not restart for the next test.
Is it possible to implement something similar or an option that allows doing something similar? I tried using hooks but it didn't work
Hooks code:
The text was updated successfully, but these errors were encountered: