TOPdesk / dart-junitreport

An application to generate JUnit XML reports from dart test runs.
https://pub.dartlang.org/packages/junitreport
MIT License
31 stars 45 forks source link

Exception: "Bad state: not started" #27

Closed kluverua closed 2 years ago

kluverua commented 3 years ago

After running this command flutter test --machine | tojunit --output TEST-report.xml I get an error Bad state: not started and empty TEST-report.xml file At the same time this command flutter test --machine work well and writes correct results to console.

This behavior appeared after flutter update flater version 2.0.3. junitreport version 1.3.1.

kluverua commented 3 years ago

I fixed this error by upgrading this library to null safety version (fixed sorces)

For those who faced the same problem: You can take fixed exe file from archive or compile it yourself: dart compile exe bin/tojunit.dart

rspilker commented 2 years ago

A null-safe version 2.0.0 has just been released.