From 2b64660fd237362a977293a024ff4a618d69d44d Mon Sep 17 00:00:00 2001 From: Valentin Haenel Date: Thu, 11 Mar 2021 19:42:32 +0100 Subject: [PATCH] ensure that coverage is aggregated Make sure that pytest-cov will aggregate the coverage resulsts from the cram test run. --- test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.sh b/test.sh index 88f2ccdb..a52251c0 100755 --- a/test.sh +++ b/test.sh @@ -7,7 +7,7 @@ echo "Testing command line interface with cram" COVERAGE=1 cram --verbose $@ test_cmdline/*.cram cram_exit=$? echo "Executing unit tests with pytest" -PYTHONPATH=. pytest --cov=bloscpack test +PYTHONPATH=. pytest --cov=bloscpack --cov-append test pytest_exit=$? if [ $cram_exit -gt 0 ] || [ $pytest_exit -gt 0 ] ; then echo "some tests failed"