From bd6d5eb8c9da3352a5b2fe9417753ff2a66641fb Mon Sep 17 00:00:00 2001 From: Plamen Dimitrov Date: Thu, 2 May 2024 12:06:48 +0800 Subject: [PATCH] Fix confusing coverage script behavior ignoring some errors We would prefer to have the coverage report generated in all cases and the problems with coverage in the bash script are not reproducible in other environments so let's prioritize the coverage data first. --- tests/coverage_analysis.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/coverage_analysis.sh b/tests/coverage_analysis.sh index 8f434f24..a6eadc9b 100755 --- a/tests/coverage_analysis.sh +++ b/tests/coverage_analysis.sh @@ -11,5 +11,5 @@ $coverage run --source="$libpath" -m unittest discover -v -s ../tests/ $coverage report -m -i # codecov is poorly documented and even in verbose mode and various directory changes # won't tell us where it runs the xml command and why it ends up not finding it -$coverage xml +$coverage xml -i if [[ $submit == 1 ]]; then codecov; fi