diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c3eb46d5437e9cb4efe339d5f5be9c868897f734..ed4ed7f889c6a2ffcc1e0f26221c5803b63711eb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -61,10 +61,12 @@ build PDF documentation:
 run tests:
   stage: test
   script:
-    - py.test -r w --cov=kwant --cov-report term --cov-report html --flakes kwant
+    - py.test -r w --cov=kwant --cov-report term --cov-report html --flakes kwant --junitxml=tests.xml
   artifacts:
     paths:
       - htmlcov
+    reports:
+      junit: tests.xml
 
 
 check for broken links in doc: