How can we generate json report for integration tests in Flutter?

Viewed 1276

I am writing integration tests with Flutter's new integartion-test package. The tests are executing fine using flutter drive command but it does not give me any json report. flutter test --machine is not working for integration tests.

I want to generate a json report for the executed tests. Is there any other command or any workaround for this?

2 Answers

If you run your tests locally, you can try with this command:

flutter test -machine integration_test > report.json

Otherwise, on Firebase Test Lab you get a JUnit xml output file for each execution.

Related