initios / flake8-junit-report

WARNING: Not mantained
BSD 3-Clause "New" or "Revised" License
14 stars 12 forks source link

Build fails on Bamboo when no flake8 errors occur because 0 tests are reported #23

Open johnthagen opened 6 years ago

johnthagen commented 6 years ago

Using Bamboo's JUnit Parser, if no errors are reported by flake8, then the build will be fail using this tool.

The reason is that Bamboo requires that there be at least one successful test reported to consider the JUnit Parser task as successful. flake8-junit-report creates a JUnit file in this case with 0 tests.

Could the tool be updated to output a single successful test when there are no errors?

A similar plugin I wrote does it like this:

https://github.com/johnthagen/cppcheck-junit/blob/69c16c0fb49a464961fbb54b4030d92e6b75b1b8/cppcheck_junit.py#L143

johnthagen commented 6 years ago

This works correctly in https://github.com/astj/flake8-formatter-junit-xml, which also has a slightly nicer UI (only a one step process to get JUnit XML).