diff --git a/api/web/start.py b/api/web/start.py index 3d925a1bd..cde4adc6d 100644 --- a/api/web/start.py +++ b/api/web/start.py @@ -8,7 +8,7 @@ # http://coverage.readthedocs.io/en/coverage-4.2/faq.html if os.environ.get("SCITRAN_RUNTIME_COVERAGE") == "true": # pragma: no cover - oh, the irony import coverage - cov = coverage.coverage(source=["api"], data_suffix="integration-tests") + cov = coverage.coverage(source=["api"], data_file="/tmp/.coverage.integration-tests") class CoverageSaveHandler(webapp2.RequestHandler): def save_coverage(self): diff --git a/tests/bin/docker-tests.sh b/tests/bin/docker-tests.sh index b91cc606b..7589ff792 100755 --- a/tests/bin/docker-tests.sh +++ b/tests/bin/docker-tests.sh @@ -106,7 +106,7 @@ clean_up() { # Save integration test coverage docker exec core-test-service python -c 'import requests; requests.post("http://localhost/api/save-coverage")' - docker cp core-test-service:/src/core/.coverage.integration-tests ./ 2>/dev/null + docker cp core-test-service:/tmp/.coverage.integration-tests ./ 2>/dev/null # Combine unit/integ coverage and report/grenerate html docker run --rm \