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

Failed tests being reported as "Error" instead of "Failure" #33

Closed JordanRoberts1 closed 2 years ago

JordanRoberts1 commented 3 years ago

As the title states. A failed test is being reported as an "Error" instead of a "Failure". See image below:

image

This seems odd to me, but maybe this is intentional? If it is intentional, what constitutes an "Error" vs a "Failure"?

rspilker commented 2 years ago

A failure is a test that 'fails'. Like:

expect(1, 2);

An error is that an exception occurred during the execution of the test.

int.parse('avogadro's number');

In this case, it actually is really an error, because an exception was caught by the "FLUTTER TEST FRAMEWORK".

rspilker commented 2 years ago

May I suggest you add -b "/var/jenkins-home/workspace/ure-hdwsurp-100-testing-pipeline" to the tojunit command line to remove that text from the package name.

See tojunit -h for all command line options.