This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import 'dart:async';
22import 'dart:io' ;
33
44import 'package:e2e/common.dart' as e2e;
5+ import 'package:flutter/cupertino.dart' ;
56import 'package:flutter_driver/flutter_driver.dart' ;
67
78Future <void > main () async => e2eDriver ();
@@ -19,12 +20,20 @@ Future<void> main() async => e2eDriver();
1920/// Future<void> main() async => e2e.e2eDriver();
2021///
2122/// ```
23+ ///
24+ /// `timeout` controls the longest time waited before the test ends, not
25+ /// necessarily the execution time for the test app.
26+ ///
27+ /// `traceTimeline` flag controls if timeline and timeline summary should be
28+ /// collected.
29+ ///
30+ /// `testName` is used as the file name for the output timeline files.
2231Future <void > e2eDriver ({
2332 Duration timeout = const Duration (minutes: 1 ),
24- String testName,
2533 bool traceTimeline = false ,
34+ @required testName,
2635}) async {
27- print (testName);
36+ assert (testName != null );
2837 final FlutterDriver driver = await FlutterDriver .connect ();
2938 String jsonResult;
3039 Timeline timeline;
You can’t perform that action at this time.
0 commit comments