You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally reported byDevin Bayer (Bitbucket: akvadrako, GitHub: akvadrako)
When the command being executed fails, coverage still returns with a zero exit status. This means I can't use it to measure coverage of my unit tests and test if the unit tests succeed.
A quick look at the inside of Django's manage.py, it looks like it depends on a call to sys.exit() somewhere deep in the command. Coverage catches SystemExit to return the proper status code, so I'm not sure what's going on here.
I think buildout is at fault here. They should be propagating the exit status. If I invoke sys.exit in my main() function, I lose the ability to test it.
Originally reported by Devin Bayer (Bitbucket: akvadrako, GitHub: akvadrako)
When the command being executed fails, coverage still returns with a zero exit status. This means I can't use it to measure coverage of my unit tests and test if the unit tests succeed.
./manage.py test --with-xunit # $? == 1
coverage ./manage.py test --with-xunit # $? == 0
The text was updated successfully, but these errors were encountered: