File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,30 @@ def test_central(testdir):
113
113
assert result .ret == 0
114
114
115
115
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
+
116
140
def test_central_nonspecific (testdir ):
117
141
script = testdir .makepyfile (SCRIPT )
118
142
You can’t perform that action at this time.
0 commit comments