Interview Prep/CI/CD/Builds, Artifacts, Nexus, SonarQube and Testing

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 →

  1. Enforce coverage on new code with Sonar or diff-cover (diff-cover coverage.xml --fail-under=80).
  2. Add mutation testing (PIT, Stryker) on critical modules nightly.
  3. 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.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Builds, Artifacts, Nexus, SonarQube and Testing