Skip to content

Instantly share code, notes, and snippets.

@ShaneRich5
Created June 14, 2018 18:51
Show Gist options
  • Save ShaneRich5/e6881de1afda24b17b43895f6aca59c6 to your computer and use it in GitHub Desktop.
Save ShaneRich5/e6881de1afda24b17b43895f6aca59c6 to your computer and use it in GitHub Desktop.
if settings.TESTING:
import coverage
cov = coverage.coverage(source=['entities'], omit=['*/tests/*'])
cov.set_option('report:show_missing', True)
cov.erase()
cov.start()
execute_from_command_line(sys.argv)
if settings.TESTING:
cov.stop()
cov.save()
cov.report()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment