Skip to content

Commit 44aa528

Browse files
committed
test: one more fail-under test
I saw this bug against pytest-cov, and thought it was my fault: pytest-dev/pytest-cov#601, but pytest-cov has their own comparison and reporting code for fail-under. Without the plugin, you won't get a message like "total of X is less than X." This test helped confirm that, so we'll keep it.
1 parent 9e44b6e commit 44aa528

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_cmdline.py

+1
Original file line numberDiff line numberDiff line change
@@ -1214,6 +1214,7 @@ def test_fail_under(
12141214
"Coverage failure: total of 20.5 is less than fail-under=20.6\n"),
12151215
(20.12345, "report --fail-under=20.1235 --precision=5", 2,
12161216
"Coverage failure: total of 20.12345 is less than fail-under=20.12350\n"),
1217+
(20.12339, "report --fail-under=20.1234 --precision=4", 0, ""),
12171218
])
12181219
def test_fail_under_with_precision(self, result: float, cmd: str, ret: int, msg: str) -> None:
12191220
cov = CoverageReportingFake(report_result=result)

0 commit comments

Comments
 (0)