File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,6 @@ jobs:
123
123
id : combine
124
124
env :
125
125
COVERAGE_RCFILE : " metacov.ini"
126
- COVERAGE_METAFILE : " .metacov"
127
126
COVERAGE_CONTEXT : " yes"
128
127
run : |
129
128
set -xe
Original file line number Diff line number Diff line change @@ -210,18 +210,15 @@ def run_tests_with_coverage(tracer, *runner_args):
210
210
211
211
212
212
def do_combine_html ():
213
- """Combine data from a meta-coverage run, and make the HTML and XML reports ."""
213
+ """Combine data from a meta-coverage run, and make the HTML report ."""
214
214
import coverage
215
215
os .environ ['COVERAGE_HOME' ] = os .getcwd ()
216
- os .environ ['COVERAGE_METAFILE' ] = os .path .abspath (".metacov" )
217
216
cov = coverage .Coverage (config_file = "metacov.ini" )
218
217
cov .load ()
219
218
cov .combine ()
220
219
cov .save ()
221
220
show_contexts = bool (os .environ .get ('COVERAGE_DYNCTX' ) or os .environ .get ('COVERAGE_CONTEXT' ))
222
221
cov .html_report (show_contexts = show_contexts )
223
- cov .xml_report ()
224
- cov .json_report (pretty_print = True )
225
222
226
223
227
224
def do_test_with_tracer (tracer , * runner_args ):
Original file line number Diff line number Diff line change 8
8
9
9
[run]
10
10
branch = true
11
- data_file = ${COVERAGE_METAFILE? }
11
+ data_file = ${COVERAGE_METAFILE-.metacov }
12
12
parallel = true
13
13
relative_files = true
14
14
source =
@@ -20,7 +20,7 @@ dynamic_context = ${COVERAGE_DYNCTX-none}
20
20
context = ${COVERAGE_CONTEXT-none}
21
21
22
22
[report]
23
- # We set a different pragmas so our code won't be confused with test code, and
23
+ # We set different pragmas so our code won't be confused with test code, and
24
24
# we use different pragmas for different reasons that the lines won't be
25
25
# measured.
26
26
exclude_lines =
You can’t perform that action at this time.
0 commit comments