You must ensure unit tests, not just a green build, are present for every new class.
IntermediateScenarioBuilds, Artifacts, Nexus, SonarQube and Testing
Answer
Situation read → Quality enforcement.
What I'd do →
- Enforce coverage on new code with Sonar or
diff-cover(diff-cover coverage.xml --fail-under=80). - Add mutation testing (PIT, Stryker) on critical modules nightly.
- Use PR templates and review checklists as complements.
Why → Coverage on changed lines focuses effort, and mutation tests check assertion quality.
Interview tip → High coverage without assertions is a vanity metric.
More on Builds, Artifacts, Nexus, SonarQube and Testing
A Maven project resolves dependencies from Maven Central on every build and a left-pad style outage would stop all builds.BeginnerYou must publish snapshot and release artifacts without overwriting a released version.IntermediateEvery merge to main should produce a unique semantic version automatically.IntermediateAn npm build is non-reproducible: different versions install on different days.BeginnerThe SonarQube quality gate must block merging PRs that add new bugs, vulnerabilities or uncovered code.IntermediateCoverage shows 0% in SonarQube although tests run in CI.Intermediate