| Les deux révisions précédentes Révision précédente | |
| eadl:bloc3:dev_av:tests [2025/09/17 00:25] – [SpringBoot-GitHub] jcheron | eadl:bloc3:dev_av:tests [2025/09/17 00:41] (Version actuelle) – [SpringBoot-GitHub] jcheron |
|---|
| <html></div></html> | <html></div></html> |
| |
| | === Seuil de couverture === |
| | Ajout d'une exécution jacoco:check pour échouer sous le seuil de 80% de couverture : |
| | |
| | <sxh xml;gutter:false> |
| | <execution> |
| | <id>check</id> |
| | <goals><goal>check</goal></goals> |
| | <configuration> |
| | <rules> |
| | <rule> |
| | <element>BUNDLE</element> |
| | <limits> |
| | <limit> |
| | <counter>INSTRUCTION</counter> |
| | <value>COVEREDRATIO</value> |
| | <minimum>0.80</minimum> |
| | </limit> |
| | </limits> |
| | </rule> |
| | </rules> |
| | </configuration> |
| | </execution> |
| | </sxh> |
| | |
| | === Bonnes pratiques CI === |
| | * Protéger la branche master : |
| | * Settings → Branches → Add rule → exiger le job “CI • Tests (Maven)” avant merge. |
| | * Déclencheurs: |
| | * Pour limiter le bruit: exécuter seulement sur PR ou sur changements Java/Maven: |
| | |
| | <sxh yml;gutter:false> |
| | on: |
| | pull_request: |
| | branches: [ master ] |
| | paths: [ 'src/**', 'pom.xml', '.github/workflows/**' ] |
| | </sxh> |
| |
| |
| |