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

Optional parameter to set exit code on test error #9

Closed
PhilLab opened this issue Feb 21, 2020 · 0 comments · Fixed by #17
Closed

Optional parameter to set exit code on test error #9

PhilLab opened this issue Feb 21, 2020 · 0 comments · Fixed by #17

Comments

@PhilLab
Copy link

PhilLab commented Feb 21, 2020

cppcheck-junit currently only sets a non-zero exit code when a parsing error occurred.

Similar to cppcheck's --error-exitcode parameter, it would be great if cppcheck-junit also had this.

Usage scenario:

  1. Call cppcheck without setting the exit code, so the script is not aborted and the junit converter can run afterwards
  2. Then run the junit conversion which (in case of an error) sets the error code and thus aborts the program. Useful for local scripts and CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants