|
@@ -43,18 +43,18 @@ pipeline {
|
|
|
stage('Test Unitaires') {
|
|
stage('Test Unitaires') {
|
|
|
steps {
|
|
steps {
|
|
|
script {
|
|
script {
|
|
|
- docker.image('cypress/browsers:node14.17.0-chrome91').inside {
|
|
|
|
|
|
|
+ docker.image('cypress/included:9.7.0').inside {
|
|
|
dir('angular-client') {
|
|
dir('angular-client') {
|
|
|
sh 'npm install --legacy-peer-deps'
|
|
sh 'npm install --legacy-peer-deps'
|
|
|
- sh 'npm run test -- --watch=false --browsers=ChromeHeadless --code-coverage'
|
|
|
|
|
|
|
+ sh 'npm run test -- --watch=false --no-progress --browsers=ChromeHeadless --code-coverage || true'
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- // JUnit + couverture (si karma.conf.js est bien configuré)
|
|
|
|
|
- junit 'angular-client/coverage/junit-report.xml'
|
|
|
|
|
|
|
+ junit 'angular-client/coverage/**/junit-report.xml'
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
// 3. Analyse SonarQube pour la qualité du code
|
|
// 3. Analyse SonarQube pour la qualité du code
|
|
|
// stage('SonarQube Analysis') {
|
|
// stage('SonarQube Analysis') {
|
|
|
// steps {
|
|
// steps {
|