#!/bin/bash

find . -name '*.pyc' -delete

coverage erase

OMIT="$(python -c 'import sys; print sys.prefix')"

coverage run --omit=$OMIT ./manage.py test   \
    core           \
    feedback       \
    hansard        \
    helpers        \
    images         \
    info           \
    scorecards     \
    search         \
    tasks          \
    user_profile

coverage run --omit=$OMIT ./manage.py test --selenium-only \
  core                           \
  feedback                       \
  user_profile

coverage html -d mzalendo-coverage

#!/bin/bash

find . -name '*.pyc' -delete

coverage erase

OMIT="$(python -c 'import sys; print sys.prefix')/*"

coverage run --omit=$OMIT ./manage.py test   \
    core           \
    feedback       \
    hansard        \
    helpers        \
    images         \
    info           \
    scorecards     \
    search         \
    tasks          \
    user_profile

coverage run --omit=$OMIT ./manage.py test --selenium-only \
  core                           \
  feedback                       \
  user_profile

coverage html -d mzalendo-coverage

Correct the --omit parameter for coverage.py
Correct the --omit parameter for coverage.py

Despite what some things on the web suggest, you seem to need
to have a wildcard at the end of a path in the --omit list.
