4

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 2

2

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.

Sign up to request clarification or add additional context in comments.

Comments

2

Whilst looking for a solution, I found something:

Report looks like this: Picture of report

I just use:

flutter test --machine > machine.log || echo 'Tests failed' <PATH/TO_TEST_CLASS>

flutter pub global run dart_dot_reporter machine.log

Reference:

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.