Last active
August 29, 2015 14:15
-
-
Save t2y/cd5aec0e8e27e6c62325 to your computer and use it in GitHub Desktop.
coverage testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ coverage run t1.py | |
$ coverage report -m --fail-under 100 | |
Name Stmts Miss Cover Missing | |
------------------------------------- | |
t1 7 0 100% | |
$ echo $? | |
0 | |
$ coverage run t2.py | |
$ coverage report -m --fail-under 100 | |
Name Stmts Miss Cover Missing | |
------------------------------------- | |
t2 6 1 83% 4 | |
$ echo $? | |
2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment