From 0c1714b505c4d1283c0dc6cb876ae05224df2143 Mon Sep 17 00:00:00 2001
From: Erwan Rouchet <rouchet@teklia.com>
Date: Mon, 18 Jan 2021 12:11:39 +0100
Subject: [PATCH] Send test reports to GitLab

---
 .gitlab-ci.yml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 83a76ddcf..78c58f1bf 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,7 +20,13 @@ before_script:
 frontend-test:
   stage: test
   script:
-    - npm run test
+    - npm run test -- --reporter=xunit --reporter-option output=test-report.xml
+
+  artifacts:
+    when: always
+    reports:
+      junit:
+        - test-report.xml
 
 frontend-lint:
   stage: test
-- 
GitLab