Skip to content

Commit c967ef2

Browse files
committed
added tests
1 parent 50a6672 commit c967ef2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

pytest-cov/test_pytest_cov.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,30 @@ def test_central(testdir):
113113
assert result.ret == 0
114114

115115

116+
def test_central_cov_min_100(testdir):
117+
script = testdir.makepyfile(SCRIPT)
118+
119+
result = testdir.runpytest('-v',
120+
'--cov', '--cov-source=%s' % script.dirpath(),
121+
'--cov-report=term-missing',
122+
'--cov-min=100',
123+
script)
124+
125+
assert result.ret == 1
126+
127+
128+
def test_central_cov_min_50(testdir):
129+
script = testdir.makepyfile(SCRIPT)
130+
131+
result = testdir.runpytest('-v',
132+
'--cov', '--cov-source=%s' % script.dirpath(),
133+
'--cov-report=term-missing',
134+
'--cov-min=50',
135+
script)
136+
137+
assert result.ret == 0
138+
139+
116140
def test_central_nonspecific(testdir):
117141
script = testdir.makepyfile(SCRIPT)
118142

0 commit comments

Comments
 (0)