Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 927cfe6

Browse files
committed
Modify according to dnfiled@
1 parent 3b763ca commit 927cfe6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

packages/e2e/lib/e2e_driver.dart

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,20 @@ Future<void> main() async => e2eDriver();
1919
/// Future<void> main() async => e2e.e2eDriver();
2020
///
2121
/// ```
22+
///
23+
/// `timeout` controls the longest time waited before the test ends, not
24+
/// necessarily the execution time for the test app.
25+
///
26+
/// `traceTimeline` flag controls if timeline and timeline summary should be
27+
/// collected.
28+
///
29+
/// `testName` is used as the file name for the output timeline files.
2230
Future<void> e2eDriver({
2331
Duration timeout = const Duration(minutes: 1),
24-
String testName,
2532
bool traceTimeline = false,
33+
@required testName,
2634
}) async {
27-
print(testName);
35+
assert(testName != null);
2836
final FlutterDriver driver = await FlutterDriver.connect();
2937
String jsonResult;
3038
Timeline timeline;

0 commit comments

Comments
 (0)