How do you structure test stages so developers get fast feedback but you still get deep coverage?
BeginnerScenarioBuilds, Artifacts, Nexus, SonarQube and Testing
Answer
Situation read → Test pyramid in the pipeline.
What I'd do →
- On every push: lint, unit tests and build (minutes).
- On PR: add integration tests and a quick security scan.
- Post-merge or nightly: full end-to-end, performance and long scans.
- After deploy: smoke tests against the live environment.
Why → Fast tests gate every change, and slow tests run where their cost is justified.
Interview tip → Describe the pipeline as feedback loops of increasing cost.
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