[integration_test] Add a run method for proper reporting of test results (#70075)
This commit is contained in:
@@ -12,12 +12,10 @@
|
||||
import 'dart:html' as html;
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:integration_test/integration_test.dart';
|
||||
|
||||
import 'package:integration_test_example/main.dart' as app;
|
||||
|
||||
void main() {
|
||||
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
||||
testWidgets('verify text', (WidgetTester tester) async {
|
||||
// Build our app and trigger a frame.
|
||||
app.main();
|
||||
|
||||
@@ -12,13 +12,10 @@
|
||||
import 'dart:io' show Platform;
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:integration_test/integration_test.dart';
|
||||
|
||||
import 'package:integration_test_example/main.dart' as app;
|
||||
|
||||
void main() {
|
||||
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
testWidgets('verify text', (WidgetTester tester) async {
|
||||
// Build our app and trigger a frame.
|
||||
app.main();
|
||||
|
||||
@@ -14,7 +14,4 @@ import 'package:integration_test/integration_test.dart';
|
||||
import '_example_test_io.dart' if (dart.library.html) '_example_test_web.dart'
|
||||
as tests;
|
||||
|
||||
void main() {
|
||||
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
||||
tests.main();
|
||||
}
|
||||
void main() => run(tests.main);
|
||||
|
||||
@@ -17,7 +17,4 @@ import 'package:integration_test/integration_test.dart';
|
||||
import '_extended_test_io.dart' if (dart.library.html) '_extended_test_web.dart'
|
||||
as tests;
|
||||
|
||||
void main() {
|
||||
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
||||
tests.main();
|
||||
}
|
||||
void main() => run(tests.main);
|
||||
|
||||
Reference in New Issue
Block a user