correct CI for front-end unit-test - issue 1776

This commit is contained in:
Laurent GAY
2025-06-30 18:28:29 +02:00
parent 888d4ed401
commit 98b2b23dcb
2 changed files with 10 additions and 1 deletions

View File

@@ -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/

View File

@@ -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). */