From 98b2b23dcb8fb0a4a829a92e21896b4265a2db6a Mon Sep 17 00:00:00 2001 From: Laurent GAY Date: Mon, 30 Jun 2025 18:28:29 +0200 Subject: [PATCH] correct CI for front-end unit-test - issue 1776 --- .gitlab-ci.yml | 6 ++++++ playwright.config.ts | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 87e17baeb..7b652cdd6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -130,6 +130,9 @@ exunit: vitest: image: node:20 stage: test + variables: + LANG: "fr_FR.UTF-8" + TZ: "Europe/Paris" before_script: - export EXITVALUE=0 - npm ci @@ -171,6 +174,9 @@ e2e: - BROWSER: ["firefox", "chromium"] artifacts: expire_in: 2 days + reports: + junit: + - results-*.xml paths: - playwright-report/ - test-results/ diff --git a/playwright.config.ts b/playwright.config.ts index 03e0bf459..d553e6728 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -30,7 +30,10 @@ const config: PlaywrightTestConfig = { /* Opt out of parallel tests on CI. */ workers: process.env.CI ? 1 : undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ - reporter: "html", + reporter: [ + ["html"], + ["junit", { outputFile: "results-" + process.env.BROWSER + ".xml" }], + ], /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: { /* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */