diff --git a/Jenkinsfile b/Jenkinsfile index 1e367f042..9e185d2ea 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -31,11 +31,18 @@ pipeline { stage('Run Cypress Tests') { steps { script { - // Install Cypress (falls nicht bereits installiert) + echo "Installing Cypress..." sh 'npx cypress install' - - // Cypress Tests ausführen - sh 'npx cypress run' + + echo "Running Cypress Tests..." + try { + sh 'npx cypress run --reporter spec' + } catch (err) { + echo "Cypress Tests Failed!" + error "Build failed due to Cypress test failures." + } + + echo "Cypress Tests Completed." } } }