Skip to content

Instantly share code, notes, and snippets.

@photonxp
Created April 5, 2014 01:02
Show Gist options
  • Save photonxp/9986061 to your computer and use it in GitHub Desktop.
Save photonxp/9986061 to your computer and use it in GitHub Desktop.
coverage.py usage command
coverage help classic
========
coverage -rm api/* (show statistics result for files under the path of api)
name@namevirtual:~/.jenkins/jobs/test_coverage/workspace$ coverage -rm namell/api/*
Name Stmts Miss Cover Missing
------------------------------------------------------------
nutshell/api/__init__ 0 0 100%
nutshell/api/__init__ 0 0 100%
nutshell/api/forms 170 170 0% 6-355
nutshell/api/forms 170 170 0% 6-355
nutshell/api/merge_action 92 92 0% 6-188
nutshell/api/merge_action 92 92 0% 6-188
coverage -rm question/* search/*
=========
ref:
http://ratnadeepdebnath.wordpress.com/2011/09/22/a-brief-introduction-to-coverage-py/
django unittest coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment