@@ -5,7 +5,7 @@ print_mode="verbose"
5
5
custom_testfiles=()
6
6
max_iter=10
7
7
site_pkgs=$( python -c ' import site; print(site.getsitepackages()[0])' )
8
- fcoveragexml =" coverage.stumpy.xml "
8
+ fcoveragejson =" coverage.stumpy.json "
9
9
# Parse command line arguments
10
10
for var in " $@ "
11
11
do
31
31
custom_testfiles+=(" $var " )
32
32
elif [[ $var =~ ^[\- 0-9]+$ ]]; then
33
33
max_iter=$var
34
- elif [[ " $var " == * " .xml " ]]; then
35
- fcoveragexml =$var
34
+ elif [[ " $var " == * " .json " ]]; then
35
+ fcoveragejson =$var
36
36
elif [[ " $var " == " links" ]]; then
37
37
test_mode=" links"
38
38
else
@@ -173,11 +173,11 @@ show_coverage_report()
173
173
coverage report -m --fail-under=100 --skip-covered --omit=fastmath.py,docstring.py,min_versions.py,ray_python_version.py $fcoveragerc
174
174
}
175
175
176
- gen_coverage_xml_report ()
176
+ gen_coverage_json_report ()
177
177
{
178
- # This function saves the coverage report in Cobertura XML format, which is compatible with codecov
178
+ # This function saves the coverage report in JSON format
179
179
set_ray_coveragerc
180
- coverage xml -o $fcoveragexml --fail-under=100 --omit=fastmath.py,docstring.py,min_versions.py,ray_python_version.py $fcoveragerc
180
+ coverage json -o $fcoveragejson --fail-under=100 --omit=fastmath.py,docstring.py,min_versions.py,ray_python_version.py $fcoveragerc
181
181
}
182
182
183
183
test_custom ()
@@ -384,7 +384,7 @@ elif [[ $test_mode == "report" ]]; then
384
384
echo " Generate Coverage Report Only"
385
385
# Assume coverage tests have already been executed
386
386
# and a coverage file exists
387
- gen_coverage_xml_report
387
+ gen_coverage_json_report
388
388
elif [[ $test_mode == " gpu" ]]; then
389
389
echo " Executing GPU Unit Tests Only"
390
390
test_gpu
0 commit comments