Interview Prep/CI/CD/Build Tools, Nexus, SonarQube and Test Failures

`mvn verify` fails: `Tests run: 0` or surefire finds no tests after a JUnit upgrade.

IntermediateTroubleshootingBuild Tools, Nexus, SonarQube and Test Failures
Answer

Likely causes → Surefire version too old for JUnit 5, or mixed JUnit 4/5 engines without vintage.

Diagnose → mvn dependency:tree | grep junit; check the surefire version.

Fix → Use Surefire 3.x and add junit-vintage-engine for legacy tests.

Prevent → Pin plugin versions in the POM.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Build Tools, Nexus, SonarQube and Test Failures