forked from verdnatura/salix-front
chore: refs #6695 update Cypress to version 14.1.0 and simplify test execution in Jenkinsfile
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')
|
||||
sh "docker-compose ${env.COMPOSE_PARAMS} up -d"
|
||||
image.inside("--network ${env.COMPOSE_PROJECT}_default -e CI -e TZ") {
|
||||
// sh 'cypress run --browser chromium'
|
||||
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 '{}'"
|
||||
wait
|
||||
'''
|
||||
sh 'cypress run'
|
||||
// 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 '{}'"
|
||||
// wait
|
||||
// '''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ if (process.env.CI) {
|
|||
reporterOptions = {
|
||||
reporterEnabled: 'mocha-junit-reporter, mochawesome',
|
||||
mochaJunitReporterReporterOptions: {
|
||||
mochaFile: 'test/cypress/results/junit-[hash].xml', // Evita sobrescritura
|
||||
mochaFile: 'test/cypress/results/junit-[hash].xml',
|
||||
},
|
||||
mochawesomeReporterOptions: {
|
||||
reportDir: 'test/cypress/results',
|
||||
|
@ -68,5 +68,5 @@ export default defineConfig({
|
|||
},
|
||||
experimentalMemoryManagement: true,
|
||||
defaultCommandTimeout: 10000,
|
||||
numTestsKeptInMemory: 2,
|
||||
numTestsKeptInMemory: 0,
|
||||
});
|
||||
|
|
|
@ -39,7 +39,7 @@ ENV PNPM_HOME="/home/app/.local/share/pnpm"
|
|||
ENV PATH="$PNPM_HOME:$PATH"
|
||||
|
||||
RUN pnpm setup \
|
||||
&& pnpm install --global cypress@13.6.6 \
|
||||
&& pnpm install --global cypress@14.1.0 \
|
||||
&& cypress install
|
||||
|
||||
WORKDIR /app
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
"@quasar/quasar-app-extension-testing-unit-vitest": "^0.4.0",
|
||||
"@vue/test-utils": "^2.4.4",
|
||||
"autoprefixer": "^10.4.14",
|
||||
"cypress": "^13.6.6",
|
||||
"cypress": "^14.1.0",
|
||||
"cypress-mochawesome-reporter": "^3.8.2",
|
||||
"eslint": "^9.18.0",
|
||||
"eslint-config-prettier": "^10.0.1",
|
||||
|
|
|
@ -71,11 +71,11 @@ devDependencies:
|
|||
specifier: ^10.4.14
|
||||
version: 10.4.20(postcss@8.5.3)
|
||||
cypress:
|
||||
specifier: ^13.6.6
|
||||
version: 13.17.0
|
||||
specifier: ^14.1.0
|
||||
version: 14.1.0
|
||||
cypress-mochawesome-reporter:
|
||||
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:
|
||||
specifier: ^9.18.0
|
||||
version: 9.20.1
|
||||
|
@ -3564,7 +3564,7 @@ packages:
|
|||
/csstype@3.1.3:
|
||||
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==}
|
||||
engines: {node: '>=14'}
|
||||
hasBin: true
|
||||
|
@ -3572,7 +3572,7 @@ packages:
|
|||
cypress: '>=6.2.0'
|
||||
dependencies:
|
||||
commander: 10.0.1
|
||||
cypress: 13.17.0
|
||||
cypress: 14.1.0
|
||||
fs-extra: 10.1.0
|
||||
mochawesome: 7.1.3(mocha@11.1.0)
|
||||
mochawesome-merge: 4.4.1
|
||||
|
@ -3581,9 +3581,9 @@ packages:
|
|||
- mocha
|
||||
dev: true
|
||||
|
||||
/cypress@13.17.0:
|
||||
resolution: {integrity: sha512-5xWkaPurwkIljojFidhw8lFScyxhtiFHl/i/3zov+1Z5CmY4t9tjIdvSXfu82Y3w7wt0uR9KkucbhkVvJZLQSA==}
|
||||
engines: {node: ^16.0.0 || ^18.0.0 || >=20.0.0}
|
||||
/cypress@14.1.0:
|
||||
resolution: {integrity: sha512-pPPj8Uu9NwjaaiXAEcjYZZmgsq6v9Zs1Nw6a+zRF+ANgYSNhH4S32SjFRsvMcuOHR/8dp4GBJhBPqIPSs+TxaA==}
|
||||
engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
|
||||
hasBin: true
|
||||
requiresBuild: true
|
||||
dependencies:
|
||||
|
|
Loading…
Reference in New Issue