Skip to content Skip to sidebar Skip to footer

How Can I Make Python's Coverage Tool Fail If Any Unit Tests Fail?

I want to use a shell script to make sure that my unit tests pass and that my code has sufficient test coverage. I only want to run my test code once. I was hoping that I could ru

Solution 1:

coverage run will exit with the exit status of the program you are running. If you run your test runner that way, then the exit status should be passed through transparently.


Post a Comment for "How Can I Make Python's Coverage Tool Fail If Any Unit Tests Fail?"