How to test coverage result should greater than specified percentage in CI?
How to test coverage result should greater than specified percentage in CI?
In my CI process, I plan to add a cmd after all test to check if the coverage result is greater than X%. If so, it will return success, otherwise it will return fail.
Is there any existing way to do so? Currently I find a package able to help me parse the coverage result and write a cmd by myself.
https://pypi.org/project/pycobertura/
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.