Skip to main content
Welcome back, future Certified DevOps Professional students. This article explains the common automated test types used in a CI/CD pipeline, why they exist, and where they typically run. Think of testing as quality control for software delivery: checks begin as early as code authoring and continue through build, integration, staging, and production. Each pipeline stage has distinct goals and trade-offs between speed, cost, and confidence. High-level test categories you’ll encounter:
  • Static analysis (SAST): analyze source code or binaries without executing them to catch style, correctness, and some security issues.
  • Unit tests: verify individual functions, classes, or methods in isolation.
  • Integration tests: validate interactions between modules, services, or external systems (databases, APIs).
  • UI / User Experience tests: simulate user interactions to verify flows, layout, and behavior from an end-user perspective.
  • Acceptance tests: confirm the system meets business requirements or API contracts.
  • Performance / Load testing: measure responsiveness and throughput under expected and peak conditions.
  • Dynamic analysis (DAST): probe the running application for runtime security issues and misconfigurations.
A slide titled "Unit Tests" showing cartoon burger ingredients — a bun, a slice of cheese, and a patty — each paired with checklist-style questions like "Is the bun fresh?" and "Is the patty cooked well?"
Unit tests
  • Purpose: Verify a single unit of functionality (a function, method, or class) in isolation.
  • Characteristics: Fast, deterministic, and provide quick feedback to developers.
  • When to run: Locally (pre-commit/pre-push), in CI during the build stage.
  • Examples of tools: pytest, JUnit, xUnit, go test.
Integration tests
  • Purpose: Ensure multiple components work correctly when composed together, including interactions with databases, caches, message queues, or external APIs.
  • Characteristics: Slower than unit tests, may require test doubles or real service instances.
  • When to run: CI testing stage, or in an isolated integration environment.
  • Examples of tools: Postman/Newman, Testcontainers, Docker Compose, contract testing frameworks.
Integration imagery and the checklist-like approach helps visualize whether components “fit” and behave correctly once combined.
A presentation slide titled "Integration Tests" showing a colorful cartoon sandwich on a plate at left. On the right are two checklist-style questions: "Do they fit well?" and "Does it melt properly?".
Acceptance and UI tests
  • Acceptance tests: Validate end-to-end behavior against business requirements or API contracts. These determine whether a release candidate is “acceptable” to stakeholders.
  • UI tests (end-to-end / UX): Simulate real user journeys to check layout, navigation, and client-side behavior.
  • Characteristics: Provide high confidence but are brittle and slower; they are best used selectively for critical paths.
  • When to run: Against a deployable artifact in staging or a test environment that mirrors production.
  • Examples of tools: Selenium, Cypress, Playwright, contract testing (Pact).
A presentation slide titled "User Interface Testing" showing a colorful illustrated burger on a plate. To the right are three checklist-style questions asking about the burger's stacking, color vibrancy, and tray placement.
Performance, load, and dynamic security testing
  • Performance / Load testing: Measure responsiveness, latency, throughput, and resource utilization under expected or peak loads.
  • Dynamic analysis (DAST): Scan a running application for runtime vulnerabilities and misconfigurations (issues that static analysis cannot find).
  • When to run: Against deployable artifacts in staging, pre-production, or dedicated performance environments. Some teams run limited checks against production (e.g., canaries, controlled DAST) if risk-managed.
  • Examples of tools: JMeter, Gatling, Locust for load; OWASP ZAP, Burp Suite for DAST.
SAST vs DAST: SAST analyzes code before execution to catch coding errors and some security flaws (fast and early). DAST works against a running app to find runtime issues that only appear when the system is executed. Use both: SAST early in the pipeline and DAST later against deployed environments.
Where tests typically run in a CI/CD pipeline Start with fast, low-level checks and progress to slower, higher-confidence tests as artifacts move closer to production. Below is a concise reference to help design a practical pipeline strategy.
A diagram titled "Different Test Types at Different Stages of the CI/CD Pipeline" showing five connected phases: Code/Dev, Build, Testing, Staging, and Production. Under each phase are example test types like static code analysis, unit tests, integration tests, UI/acceptance tests, and performance/load and security (DAST) testing.
Testing placement is a trade-off between speed, cost, and risk. Many teams “shift left” to catch defects earlier and reduce fix costs, while still retaining key checks in staging and some runtime checks in production. The right mix depends on your team’s risk tolerance, release cadence, and system complexity.
Do not rely solely on production monitoring as the only safety net. Shift testing left to reduce defect costs, but also include pre-production runtime tests and controlled production techniques (canaries, feature flags) to catch issues that surface only in realistic environments.
Further reading and tooling references That’s a compact overview of automated test types and where they map into a CI/CD pipeline. For AWS-specific CI/CD implementations and demos (CodeCommit, CodeBuild, CodePipeline, CodeDeploy, CloudWatch, etc.), see the dedicated AWS materials and hands-on labs in the course.

Watch Video

Practice Lab