Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON reporting for Flutter Driver test results #54

Open
bootstraponline opened this issue Feb 1, 2020 · 0 comments
Open

JSON reporting for Flutter Driver test results #54

bootstraponline opened this issue Feb 1, 2020 · 0 comments

Comments

@bootstraponline
Copy link
Contributor

@bootstraponline bootstraponline commented Feb 1, 2020

See if it's possible to save the internal flutter driver results to a JSON file. If successful, we'd be able to transform this format into JUnit XML in the future.

Currently there's no machine readable output for test results.

/// A subclass of [LiveTestWidgetsFlutterBinding] that reports tests results
/// on a channel to adapt them to native instrumentation test format.
class E2EWidgetsFlutterBinding extends LiveTestWidgetsFlutterBinding {
  /// Sets up a listener to report that the tests are finished when everything is
  /// torn down.
context['\$flutterDriverResult'] = json.encode(result);

e2e package


Flutter itself uses a JSON reporter and stores results in BigQuery.

https://github.com/flutter/flutter/blob/master/dev/bots/test.dart
https://github.com/flutter/flutter/blob/master/dev/bots/flutter_compact_formatter.dart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.