New: Practical guidance for AI-assisted quality engineering
Agile & DevOps · Cornerstone Guide 09

Testing in a CI/CD Pipeline

Design an effective test flow across pull requests, builds, integration, staging, release candidates, and production using speed, risk, and feedback value.

12 min readFor QA professionals, Agile teams, developers, DevOps/SRE, product owners, Scrum Masters, and delivery leaders.

The pipeline should provide layered confidence

Code Commit ↓ Build + Unit ↓ Pull Request Checks ↓ API / Contract / Component ↓ Deploy to Test ↓ Smoke + Integration ↓ Broader Regression ↓ Release Candidate ↓ Production Validation

Pull request checks

PR feedback should be fast enough to support developer flow. Prioritize unit, component, linting, static analysis, selected API/contract checks, and high-value targeted regression.

Post-deployment checks

After deployment, validate environment health, connectivity, configuration, identity, feature flags, and critical smoke flows before broader execution.

Nightly and scheduled suites

Long-running combinations, broader regression, browser matrices, data-heavy validation, and selected performance tests may run on a schedule rather than on every commit.

Release-candidate validation

  • Critical regression
  • Open defects assessed
  • Deployment rehearsal
  • Rollback readiness
  • Monitoring ready
  • Data migration validated
  • Operational support ready
  • Residual risk visible

Do not put every test in every stage

Pipeline design is an optimization problem: maximize useful confidence while preserving fast feedback.

Quarantine carefully

Flaky tests may be temporarily quarantined, but quarantine must be visible, owned, and time-bounded. Otherwise the suite gradually loses protection.

Build quality into the delivery flow

Connect Agile practices, CI/CD, quality gates, release readiness, observability, and operational feedback.

Ask a QA Question

AskAQA AI assistant

Ask a QA

Ask me about QA in Agile teams, Scrum, Kanban, shift-left, CI/CD, quality gates, Definition of Done, feature flags, or release quality.

Do not include passwords, confidential information, or personal data in your question.