Skip to content

Commit f978add

Browse files
committed
added test for no-report
1 parent c967ef2 commit f978add

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pytest-cov/test_pytest_cov.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,17 @@ def test_central_cov_min_50(testdir):
137137
assert result.ret == 0
138138

139139

140+
def test_central_cov_min_no_report(testdir):
141+
script = testdir.makepyfile(SCRIPT)
142+
143+
result = testdir.runpytest('-v',
144+
'--cov', '--cov-source=%s' % script.dirpath(),
145+
'--cov-min=50',
146+
script)
147+
148+
assert result.ret == 0
149+
150+
140151
def test_central_nonspecific(testdir):
141152
script = testdir.makepyfile(SCRIPT)
142153

0 commit comments

Comments
 (0)