diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 11ddadaeca63d2815fab8e3a0983ea8745f16468..e179d2b04c48206149b00cb9f342c2244bdb6f59 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,3 @@
-image: php:8.2
-
 stages:
   - test
   - publish
@@ -16,6 +14,7 @@ cache:
 
 test:
   stage: test
+  image: php:8.2
   before_script:
     # Met à jour Composer et installe les dépendances
     - apt-get update -yqq
@@ -24,7 +23,13 @@ test:
     - php composer.phar install --prefer-dist --no-progress --no-interaction
   script:
     # Exécute les tests PHPUnit
-    - ./vendor/bin/phpunit --colors=always
+    - mkdir -p tests/_output
+    - ./vendor/bin/phpunit --colors=always  --log-junit tests/_output/junit.xml
+  artifacts:
+    when: always
+    expire_in: 1 week
+    reports:
+      junit: tests/_output/junit.xml
 
 # Publication de la librairie
 update-satis: