fail_under param not working in .coveragerc

Issue #314 resolved
Micah Hausler
created an issue

When I run coverage run test and then coverage report, the output properly reports the coverage at 88% and shows the missing lines, but it exits with a status of 0, where it should fail. If I add --fail-under=100` flag to the command line, it properly fails.

Here is my .coveragerc file:

branch = True
omit =
source = querybuilder
exclude_lines =
    # Have to re-enable the standard pragma
    pragma: no cover

    # Don't complain if tests don't hit defensive assertion code:
    raise NotImplementedError
show_missing = 1

Coverage version is 3.7.1

TravisCI build output:

Comments (6)

  1. Log in to comment