Skip to content

Instantly share code, notes, and snippets.

@jbeezley
Last active October 19, 2017 12:35
Show Gist options
  • Save jbeezley/ebadcf99c678ef348ee087a42bc7f778 to your computer and use it in GitHub Desktop.
Save jbeezley/ebadcf99c678ef348ee087a42bc7f778 to your computer and use it in GitHub Desktop.
#!/bin/bash
coverage erase
test_files="retrograde/tests/test_*.py"
if [ $# -gt 0 ] ; then
test_files="$@"
fi
export PYTHONPATH=$PWD
parallel -v coverage run -p --source=retrograde --omit='retrograde/tests/*' {} ::: $test_files
coverage combine
coverage html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment