Unverified Commit d76860ad authored by Anna Gringauze's avatar Anna Gringauze Committed by GitHub

Add printing on failure to web hotrestart tests (#122115)

parent 43190156
......@@ -40,6 +40,7 @@ Future<void> _testProject(HotReloadProject project, {String name = 'Default'}) a
});
testWithoutContext('$testName: hot restart works without error', () async {
flutter.stdout.listen(printOnFailure);
await flutter.run(chrome: true, additionalCommandArgs: <String>['--verbose', '--web-renderer=html']);
await flutter.hotRestart();
});
......@@ -47,6 +48,7 @@ Future<void> _testProject(HotReloadProject project, {String name = 'Default'}) a
testWithoutContext('$testName: newly added code executes during hot restart', () async {
final Completer<void> completer = Completer<void>();
final StreamSubscription<String> subscription = flutter.stdout.listen((String line) {
printOnFailure(line);
if (line.contains('(((((RELOAD WORKED)))))')) {
completer.complete();
}
......@@ -64,6 +66,7 @@ Future<void> _testProject(HotReloadProject project, {String name = 'Default'}) a
testWithoutContext('$testName: newly added code executes during hot restart - canvaskit', () async {
final Completer<void> completer = Completer<void>();
final StreamSubscription<String> subscription = flutter.stdout.listen((String line) {
printOnFailure(line);
if (line.contains('(((((RELOAD WORKED)))))')) {
completer.complete();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment