mikepenz/action-junit-report

No report/summary generated when there are no passing tests and set to require passing tests

Closed this issue · 3 comments

When all tests have failed in a given test run and when the setting to require at least one passing test results in no (detailed_)summary (as output) being generated.

I think this behaviour is not desired and a summary should be generated with all those tests that failed.

See return statement + comment:

return // end if we failed due to no passed tests, but configured to require passed tests

Good day. Thanks for the ticket.

Can you please tell me more on your usecase? As this behaves as designed.

If you just want to fail the action if there is a failure, and still see reports and everything you might wanna use fail_on_failure instead?

That indeed behaves in a way that works for us too. Was just surprised the parsing would stop at the given line to begin with :-)

Thanks for the answer. The reason his that it is considered a fatal error.