ci: refs #6695 update Cypress parallel execution and JUnit results path
gitea/salix-front/pipeline/pr-dev Something is wrong with the build of this commit Details

This commit is contained in:
Alex Moreno 2025-02-24 09:54:53 +01:00
parent 6c83e4b5c4
commit 3c8e3c2642
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -119,7 +119,7 @@ pipeline {
// sh 'cypress run --browser chromium' // sh 'cypress run --browser chromium'
sh ''' sh '''
CYPRESS_SPEC_FOLDER="test/cypress/integration" CYPRESS_SPEC_FOLDER="test/cypress/integration"
find $CYPRESS_SPEC_FOLDER -name "*.spec.js" | xargs -n 1 -P 4 -I {} sh -c "cypress run --browser chromium --headless --spec '{}'" find $CYPRESS_SPEC_FOLDER -name "*.spec.js" | xargs -n 1 -P 8 -I {} sh -c "cypress run --browser chromium --headless --spec '{}'"
wait; wait;
''' '''
} }
@ -129,7 +129,7 @@ pipeline {
always { always {
sh "docker-compose ${env.COMPOSE_PARAMS} down" sh "docker-compose ${env.COMPOSE_PARAMS} down"
junit( junit(
testResults: 'test/cypress/results/*.xml', testResults: 'test/cypress/results/junit-*.xml',
allowEmptyResults: true allowEmptyResults: true
) )
} }