Skip to content

Dart 2.12 compatibility#2

Open
trygvis wants to merge 1 commit intoTOPdesk:mainfrom
trygvis:master
Open

Dart 2.12 compatibility#2
trygvis wants to merge 1 commit intoTOPdesk:mainfrom
trygvis:master

Conversation

@trygvis
Copy link
Copy Markdown

@trygvis trygvis commented Jun 2, 2021

Running dart migrate tool, accepting all changes.

With this change I can get dart-junitreport to work with Dart 2.12.

Note that this also bumps the major version to 2.0.0 which seems to be the norm for null-save libraries.

Running `dart migrate` tool, accepting all changes.

With this change I can get dart-junitreport to work with Dart 2.12.
@trygvis
Copy link
Copy Markdown
Author

trygvis commented Jun 2, 2021

See also TOPdesk/dart-junitreport#31

@renatoathaydes
Copy link
Copy Markdown

@rspilker looks like a nice pull request, making this project null-safe... could you have a look into it? Would be nice to get a null-safe release.

@renatoathaydes
Copy link
Copy Markdown

@trygvis do you know if this project, after your updates, supports all of the features of the Dart tester? As in, will it correctly and fully parse every possible test report output?

@trygvis
Copy link
Copy Markdown
Author

trygvis commented Jun 7, 2021

@renatoathaydes That is hard to know without having every possible test report :)

I've just gotten it to work for me, it worked nicely on the few test reports I have in my Gitlab setup. The code is quite easy to work with though, so if you have found an issue it shouldn't be too hard to fix.

@renatoathaydes
Copy link
Copy Markdown

That is hard to know without having every possible test report

So I suppose the JSON format is undocumented?

@trygvis
Copy link
Copy Markdown
Author

trygvis commented Jun 8, 2021

@renatoathaydes
Copy link
Copy Markdown

Ah, so maintaining full compatibility looks pretty easy.

@renatoathaydes
Copy link
Copy Markdown

That doc turned out to be really useful... I published a package on pub.dev that generates the model and a JSON parser automatically just from that markdown doc:

https://github.com/renatoathaydes/test_report_parser.dart

So hopefully, when they update the docs, all I need to do is re-run the generator and publish it again on pub.dev.

@trygvis Feel free to use that instead of this package as it's kind of un-maintained from the looks of it.

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.

2 participants