Skip to content

Instantly share code, notes, and snippets.

@t2y
Last active August 29, 2015 14:15
Show Gist options
  • Save t2y/cd5aec0e8e27e6c62325 to your computer and use it in GitHub Desktop.
Save t2y/cd5aec0e8e27e6c62325 to your computer and use it in GitHub Desktop.
coverage testing
$ 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