Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
1745402d
Unverified
Commit
1745402d
authored
Sep 09, 2021
by
Dan Field
Committed by
GitHub
Sep 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document multi-timeline usage (#88604)
parent
d3ce7f8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
integration_test.dart
packages/integration_test/lib/integration_test.dart
+26
-3
No files found.
packages/integration_test/lib/integration_test.dart
View file @
1745402d
...
@@ -282,8 +282,8 @@ https://flutter.dev/docs/testing/integration-tests#testing-on-firebase-test-lab
...
@@ -282,8 +282,8 @@ https://flutter.dev/docs/testing/integration-tests#testing-on-firebase-test-lab
);
);
}
}
/// This is a convenience
wrap of [traceTimeline] and send the result back to
/// This is a convenience
method that calls [traceTimeline] and sends the
/// the host for the [flutter_driver] style tests.
///
result back to
the host for the [flutter_driver] style tests.
///
///
/// This records the timeline during `action` and adds the result to
/// This records the timeline during `action` and adds the result to
/// [reportData] with `reportKey`. The [reportData] contains extra information
/// [reportData] with `reportKey`. The [reportData] contains extra information
...
@@ -293,7 +293,30 @@ https://flutter.dev/docs/testing/integration-tests#testing-on-firebase-test-lab
...
@@ -293,7 +293,30 @@ https://flutter.dev/docs/testing/integration-tests#testing-on-firebase-test-lab
/// to `build/integration_response_data.json` with the key `timeline`.
/// to `build/integration_response_data.json` with the key `timeline`.
///
///
/// For tests with multiple calls of this method, `reportKey` needs to be a
/// For tests with multiple calls of this method, `reportKey` needs to be a
/// unique key, otherwise the later result will override earlier one.
/// unique key, otherwise the later result will override earlier one. Tests
/// that call this multiple times must also provide a custom
/// [ResponseDataCallback] to decide where and how to write the output
/// timelines. For example,
///
/// ```dart
/// import 'package:integration_test/integration_test_driver.dart';
///
/// Future<void> main() {
/// return integrationDriver(
/// responseDataCallback: (data) async {
/// if (data != null) {
/// for (var entry in data.entries) {
/// print('Writing ${entry.key} to the disk.');
/// await writeResponseData(
/// entry.value as Map<String, dynamic>,
/// testOutputFilename: entry.key,
/// );
/// }
/// }
/// },
/// );
/// }
/// ```
///
///
/// The `streams` and `retainPriorEvents` parameters are passed as-is to
/// The `streams` and `retainPriorEvents` parameters are passed as-is to
/// [traceTimeline].
/// [traceTimeline].
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment