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

Commit 392871b

Browse files
committed
Modify according to dnfield@
1 parent 3b763ca commit 392871b

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

packages/e2e/lib/e2e_driver.dart

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import 'dart:io';
33

44
import 'package:e2e/common.dart' as e2e;
55
import 'package:flutter_driver/flutter_driver.dart';
6+
import 'package:meta/meta.dart';
67

78
Future<void> main() async => e2eDriver();
89

@@ -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.
2231
Future<void> e2eDriver({
2332
Duration timeout = const Duration(minutes: 1),
24-
String testName,
2533
bool traceTimeline = false,
34+
String testName,
2635
}) async {
27-
print(testName);
36+
assert(!traceTimeline || testName != null);
2837
final FlutterDriver driver = await FlutterDriver.connect();
2938
String jsonResult;
3039
Timeline timeline;

0 commit comments

Comments
 (0)