Skip to content
Snippets Groups Projects

Sweeping !357 from Rel-v29r2 to Rel-v30r0. [v29r2] CI: add coverage report

Merged Ghost User requested to merge cherry-pick-2-c13eee97-Rel-v30r0 into Rel-v30r0
4 files
+ 15
6
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -3,7 +3,11 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source .gitlab-ci.d/set-reportstyle.sh
export COVERAGE_PROCESS_START=$DIR/../.coveragerc
export PYTEST_ADDOPTS="${PYTEST_ADDOPTS} --cov-append --junitxml=junit_job.xml"
pytest -n 2 --randomly-dont-reorganize $DIR/../Tests/Integration/Test_Jobs.py && \
coverage combine --append tmp*/*/.coverage* && \
coverage report -i && \
coverage html -i
pytest -n 2 --randomly-dont-reorganize $DIR/../Tests/Integration/Test_Jobs.py
testResult=$?
coverage combine --append tmp*/*/.coverage*
coverage report -i
coverage xml -i -o coverage.xml
coverage html -i
sed -i "s@installation/ILCDIRAC/@@g" coverage.xml
exit ${testResult}
Loading