correct CI for front-end unit-test - issue 1776
This commit is contained in:
@@ -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/
|
||||
|
||||
@@ -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). */
|
||||
|
||||
Reference in New Issue
Block a user