Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
johnthagen opened this issue Mar 19, 2018 · 1 comment

Comments

@johnthagen
Copy link

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
Copy link
Author

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant