chore: refs #6695 update Cypress to version 14.1.0 and simplify test execution in Jenkinsfile
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
c4c5567626
commit
f3ae81ac4a
|
@ -116,11 +116,11 @@ pipeline {
|
||||||
def image = docker.build('lilium-dev', '-f docs/Dockerfile.dev docs')
|
def image = docker.build('lilium-dev', '-f docs/Dockerfile.dev docs')
|
||||||
sh "docker-compose ${env.COMPOSE_PARAMS} up -d"
|
sh "docker-compose ${env.COMPOSE_PARAMS} up -d"
|
||||||
image.inside("--network ${env.COMPOSE_PROJECT}_default -e CI -e TZ") {
|
image.inside("--network ${env.COMPOSE_PROJECT}_default -e CI -e TZ") {
|
||||||
// sh 'cypress run --browser chromium'
|
sh 'cypress run'
|
||||||
sh '''
|
// sh '''
|
||||||
find test/cypress/integration -name "*.spec.js" | xargs -n 1 -P 2 -I {} sh -c "xvfb-run -a cypress run --headless --browser chromium --spec '{}'"
|
// find test/cypress/integration -name "*.spec.js" | xargs -n 1 -P 2 -I {} sh -c "xvfb-run -a cypress run --headless --browser chromium --spec '{}'"
|
||||||
wait
|
// wait
|
||||||
'''
|
// '''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ if (process.env.CI) {
|
||||||
reporterOptions = {
|
reporterOptions = {
|
||||||
reporterEnabled: 'mocha-junit-reporter, mochawesome',
|
reporterEnabled: 'mocha-junit-reporter, mochawesome',
|
||||||
mochaJunitReporterReporterOptions: {
|
mochaJunitReporterReporterOptions: {
|
||||||
mochaFile: 'test/cypress/results/junit-[hash].xml', // Evita sobrescritura
|
mochaFile: 'test/cypress/results/junit-[hash].xml',
|
||||||
},
|
},
|
||||||
mochawesomeReporterOptions: {
|
mochawesomeReporterOptions: {
|
||||||
reportDir: 'test/cypress/results',
|
reportDir: 'test/cypress/results',
|
||||||
|
@ -68,5 +68,5 @@ export default defineConfig({
|
||||||
},
|
},
|
||||||
experimentalMemoryManagement: true,
|
experimentalMemoryManagement: true,
|
||||||
defaultCommandTimeout: 10000,
|
defaultCommandTimeout: 10000,
|
||||||
numTestsKeptInMemory: 2,
|
numTestsKeptInMemory: 0,
|
||||||
});
|
});
|
||||||
|
|
|
@ -39,7 +39,7 @@ ENV PNPM_HOME="/home/app/.local/share/pnpm"
|
||||||
ENV PATH="$PNPM_HOME:$PATH"
|
ENV PATH="$PNPM_HOME:$PATH"
|
||||||
|
|
||||||
RUN pnpm setup \
|
RUN pnpm setup \
|
||||||
&& pnpm install --global cypress@13.6.6 \
|
&& pnpm install --global cypress@14.1.0 \
|
||||||
&& cypress install
|
&& cypress install
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
"@quasar/quasar-app-extension-testing-unit-vitest": "^0.4.0",
|
"@quasar/quasar-app-extension-testing-unit-vitest": "^0.4.0",
|
||||||
"@vue/test-utils": "^2.4.4",
|
"@vue/test-utils": "^2.4.4",
|
||||||
"autoprefixer": "^10.4.14",
|
"autoprefixer": "^10.4.14",
|
||||||
"cypress": "^13.6.6",
|
"cypress": "^14.1.0",
|
||||||
"cypress-mochawesome-reporter": "^3.8.2",
|
"cypress-mochawesome-reporter": "^3.8.2",
|
||||||
"eslint": "^9.18.0",
|
"eslint": "^9.18.0",
|
||||||
"eslint-config-prettier": "^10.0.1",
|
"eslint-config-prettier": "^10.0.1",
|
||||||
|
|
|
@ -71,11 +71,11 @@ devDependencies:
|
||||||
specifier: ^10.4.14
|
specifier: ^10.4.14
|
||||||
version: 10.4.20(postcss@8.5.3)
|
version: 10.4.20(postcss@8.5.3)
|
||||||
cypress:
|
cypress:
|
||||||
specifier: ^13.6.6
|
specifier: ^14.1.0
|
||||||
version: 13.17.0
|
version: 14.1.0
|
||||||
cypress-mochawesome-reporter:
|
cypress-mochawesome-reporter:
|
||||||
specifier: ^3.8.2
|
specifier: ^3.8.2
|
||||||
version: 3.8.2(cypress@13.17.0)(mocha@11.1.0)
|
version: 3.8.2(cypress@14.1.0)(mocha@11.1.0)
|
||||||
eslint:
|
eslint:
|
||||||
specifier: ^9.18.0
|
specifier: ^9.18.0
|
||||||
version: 9.20.1
|
version: 9.20.1
|
||||||
|
@ -3564,7 +3564,7 @@ packages:
|
||||||
/csstype@3.1.3:
|
/csstype@3.1.3:
|
||||||
resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==}
|
resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==}
|
||||||
|
|
||||||
/cypress-mochawesome-reporter@3.8.2(cypress@13.17.0)(mocha@11.1.0):
|
/cypress-mochawesome-reporter@3.8.2(cypress@14.1.0)(mocha@11.1.0):
|
||||||
resolution: {integrity: sha512-oJZkNzhNmN9ZD+LmZyFuPb8aWaIijyHyqYh52YOBvR6B6ckfJNCHP3A98a+/nG0H4t46CKTNwo+wNpMa4d2kjA==}
|
resolution: {integrity: sha512-oJZkNzhNmN9ZD+LmZyFuPb8aWaIijyHyqYh52YOBvR6B6ckfJNCHP3A98a+/nG0H4t46CKTNwo+wNpMa4d2kjA==}
|
||||||
engines: {node: '>=14'}
|
engines: {node: '>=14'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
@ -3572,7 +3572,7 @@ packages:
|
||||||
cypress: '>=6.2.0'
|
cypress: '>=6.2.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
commander: 10.0.1
|
commander: 10.0.1
|
||||||
cypress: 13.17.0
|
cypress: 14.1.0
|
||||||
fs-extra: 10.1.0
|
fs-extra: 10.1.0
|
||||||
mochawesome: 7.1.3(mocha@11.1.0)
|
mochawesome: 7.1.3(mocha@11.1.0)
|
||||||
mochawesome-merge: 4.4.1
|
mochawesome-merge: 4.4.1
|
||||||
|
@ -3581,9 +3581,9 @@ packages:
|
||||||
- mocha
|
- mocha
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/cypress@13.17.0:
|
/cypress@14.1.0:
|
||||||
resolution: {integrity: sha512-5xWkaPurwkIljojFidhw8lFScyxhtiFHl/i/3zov+1Z5CmY4t9tjIdvSXfu82Y3w7wt0uR9KkucbhkVvJZLQSA==}
|
resolution: {integrity: sha512-pPPj8Uu9NwjaaiXAEcjYZZmgsq6v9Zs1Nw6a+zRF+ANgYSNhH4S32SjFRsvMcuOHR/8dp4GBJhBPqIPSs+TxaA==}
|
||||||
engines: {node: ^16.0.0 || ^18.0.0 || >=20.0.0}
|
engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
Loading…
Reference in New Issue