diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bd70b15cf901f0c61aa1da39c6ce5fc916962c19..f2dadff7f2690476abf53aaafaf38e800f51d27d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -75,6 +75,7 @@ stages:
 variables:
   UPSTREAM_PROJECT:     "fsl/fslpy"
   UPSTREAM_URL:         "git@git.fmrib.ox.ac.uk"
+  TEST_OPTS:            "--cov-report= --cov-append"
 
 
 ####################################
@@ -263,9 +264,9 @@ variables:
     # We run some tests under xvfb-run
     # because they invoke wx. Sleep in
     # between, otherwise xvfb gets upset.
-    - xvfb-run python setup.py test --addopts="tests/test_async.py"
+    - xvfb-run python setup.py test --addopts="$TEST_OPTS tests/test_async.py"
     - sleep 5
-    - xvfb-run python setup.py test --addopts="tests/test_platform.py"
+    - xvfb-run python setup.py test --addopts="$TEST_OPTS tests/test_platform.py"
 
     # We run the immv/imcpy tests as the nobody
     # user because some tests expect permission
@@ -274,10 +275,10 @@ variables:
     # this directory writable by anybody (which,
     # unintuitively, includes nobody)
     - chmod -R a+w `pwd`
-    - su -s /bin/bash -c "python setup.py test --addopts='tests/test_immv_imcp.py'" nobody
+    - su -s /bin/bash -c 'python setup.py test --addopts="$TEST_OPTS tests/test_immv_imcp.py"' nobody
 
     # All other tests can be run as normal
-    - python setup.py test --addopts="--ignore=tests/test_async.py --ignore=tests/test_platform.py --ignore=tests/test_immv_imcp.py"
+    - python setup.py test --addopts="$TEST_OPTS --ignore=tests/test_async.py --ignore=tests/test_platform.py --ignore=tests/test_immv_imcp.py"
     - python -m coverage report
 
 
diff --git a/setup.cfg b/setup.cfg
index 2bfbc6c5728aead865981b1835caff061efe82a4..9667900f3261382ce7e5e2d80c363148cf8e247c 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -6,4 +6,4 @@ universal=1
 
 [tool:pytest]
 testpaths = tests
-addopts   = -s -v --niters=50 --cov=fsl
\ No newline at end of file
+addopts   = -s -v --niters=50 --cov=fsl --cov-report=html
\ No newline at end of file