correct CI for front-end unit-test - issue 1776
This commit is contained in:
@@ -130,6 +130,9 @@ exunit:
|
|||||||
vitest:
|
vitest:
|
||||||
image: node:20
|
image: node:20
|
||||||
stage: test
|
stage: test
|
||||||
|
variables:
|
||||||
|
LANG: "fr_FR.UTF-8"
|
||||||
|
TZ: "Europe/Paris"
|
||||||
before_script:
|
before_script:
|
||||||
- export EXITVALUE=0
|
- export EXITVALUE=0
|
||||||
- npm ci
|
- npm ci
|
||||||
@@ -171,6 +174,9 @@ e2e:
|
|||||||
- BROWSER: ["firefox", "chromium"]
|
- BROWSER: ["firefox", "chromium"]
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 2 days
|
expire_in: 2 days
|
||||||
|
reports:
|
||||||
|
junit:
|
||||||
|
- results-*.xml
|
||||||
paths:
|
paths:
|
||||||
- playwright-report/
|
- playwright-report/
|
||||||
- test-results/
|
- test-results/
|
||||||
|
|||||||
@@ -30,7 +30,10 @@ const config: PlaywrightTestConfig = {
|
|||||||
/* Opt out of parallel tests on CI. */
|
/* Opt out of parallel tests on CI. */
|
||||||
workers: process.env.CI ? 1 : undefined,
|
workers: process.env.CI ? 1 : undefined,
|
||||||
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
|
/* 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. */
|
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
||||||
use: {
|
use: {
|
||||||
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
|
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
|
||||||
|
|||||||
Reference in New Issue
Block a user