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

Flutter 1.20.0 compatibility and improved test parsing #25

Merged
merged 2 commits into from
Aug 9, 2020

Conversation

kuhnroyal
Copy link
Collaborator

  • add support for Flutter 1.20.0 which emits empty lines and debug events

  • parse JSON events based on their type which is documented here: https://github.com/dart-lang/test/blob/master/pkgs/test/doc/json_reporter.md

  • restore Java 8 compatibility by removing Path.of() usage

  • use Scanner to read lines from file or String which should handle line endings correctly

  • do not report hidden tests, those are generated for setUp/tearDown functions - this previously resulted in way to many reported test cases

  • correctly determine the test duration, the outpout does not contain the duration but a start time and end time for each testID

  • add maven wrapper to ease development

* add support for Flutter 1.20.0 which emits empty lines and debug events
* parse JSON events based on their type which is documented here: https://github.com/dart-lang/test/blob/master/pkgs/test/doc/json_reporter.md
*  restore Java 8 compatibility by removing `Path.of()` usage
* use Scanner to read lines from file or String which should handle line endings correctly
* do not report hidden tests, those are generated for setUp/tearDown functions - this previously resulted in way to many reported test cases 
* correctly determine the test duration, the outpout does not contain the duration but a start time and end time for each testID
@kuhnroyal
Copy link
Collaborator Author

@stephanecodes Could you review this please and see if that also solves your nullpointer problem.

I am using this together with your change for the analysis file.

@stephanecodes
Copy link
Contributor

stephanecodes commented Aug 5, 2020

Correct me if I'm wrong as I did not test 1.20 yet but I already fixed the NullPointerException in #22
I'll review your code btw asap, it includes some interesting stuffs

Edit: forget it I did not saw you started from #22 ;)

@kuhnroyal
Copy link
Collaborator Author

Yes you did, I used your commit initially but I needed more changes.

@zippy1978
Copy link
Contributor

@kuhnroyal, @stephanecodes thanks for your contribution !
Seems perfect 👌

@zippy1978 zippy1978 merged commit 4c30d03 into insideapp-oss:develop Aug 9, 2020
@kuhnroyal kuhnroyal deleted the feature/flutter-1.20.0 branch April 28, 2021 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants