Issue #143 resolved

--omit doesn't seem to work in "coverage report"

divius
created an issue

I have report like {{{ ... /opt/ibd3/lib/python2.7/site-packages/ibd3/templating 106 12 50 11 85%
/opt/ibd3/lib/python2.7/site-packages/ibd3/tests/init 0 0 0 0 100%
/opt/ibd3/lib/python2.7/site-packages/ibd3/tests/test_access 96 0 0 0 100%
/opt/ibd3/lib/python2.7/site-packages/ibd3/tests/test_admin_demo 23 0 2 1 96%
/opt/ibd3/lib/python2.7/site-packages/ibd3/tests/test_application 37 0 4 0 100%
/opt/ibd3/lib/python2.7/site-packages/ibd3/tests/test_apps_conf 70 0 0 0 100%
... }}} where /opt/ibd3/lib/python2.7/site-packages/ibd3/tests/ are tests themselves. I want to get rid of them, so I tried to use --omit flag the following ways: {{{ $ /opt/ibd3//bin/coverage report -m --omit="/ibd3/tests/" > trial_temp/coverage.txt $ /opt/ibd3//bin/coverage report -m --omit="*/ibd3/tests/*" > _trial_temp/coverage.txt $ /opt/ibd3//bin/coverage report -m --omit="test.py" > trial_temp/coverage.txt $ /opt/ibd3//bin/coverage report -m --omit="test*.py" > trial_temp/coverage.txt $ /opt/ibd3//bin/coverage report -m --omit="test*" > trial_temp/coverage.txt $ /opt/ibd3//bin/coverage report -m --omit="test" > _trial_temp/coverage.txt $ /opt/ibd3//bin/coverage report -m --omit="test_" > trial_temp/coverage.txt $ /opt/ibd3//bin/coverage report -m --omit="*test*" > _trial_temp/coverage.txt $ /opt/ibd3//bin/coverage report -m --omit="\test_\*" > _trial_temp/coverage.txt }}} Nothing of this helps: tests are still there. Am I doing something wrong or is it a bug in coverage?

Comments (2)

  1. Log in to comment