From 273c419a26646fb326e07fa893ed6db28958702d Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sat, 26 Oct 2019 23:00:18 -0700 Subject: [PATCH] gitlab-ci: Fix path for HTML coverage report generation This issue is caused by use of tmpdir fixture which forces the tests to run in a temporary directory and HTML report to also get generated there. Signed-off-by: Sunil Mohan Adapa --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bfc7af5b6..db2b52ff5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,7 +22,7 @@ run-unit-tests: - cp -r . /home/tester/plinth - chown -R tester:tester /home/tester/plinth - su -c "cd ~/plinth; python3 -m flake8 --exclude actions/domainname-change,actions/dynamicdns,actions/hostname-change,actions/networks plinth actions/*" tester - - su -c "cd ~/plinth; py.test-3 --cov=plinth --cov-report=html --cov-report=term" tester + - su -c "cd ~/plinth; py.test-3 --cov=plinth --cov-report=html:/home/tester/plinth/htmlcov --cov-report=term" tester - cp -r /home/tester/plinth/htmlcov test-coverage-report coverage: '/^TOTAL\s+.*\s+(\d+\.\d+%)$/'