Introduction to Automated Testing in Pipelines
How automated tests are organised and placed in a pipeline: pull request and merge builds, unit tests and code coverage reports, health measured from exit codes, load and performance testing at scale, and AWS services invoked by the pipeline to run tests and checks.
- 3 lessons
- Module quiz
Automated tests are what make frequent releases safe. A pipeline without them can only move code faster, including defective code. Effective testing in CI/CD depends on running the right tests at the right points: fast checks on every change, slower integration and performance tests on changes that pass them, and health checks after each deployment.
Where this module fits
This module covers task 1.2 of the exam guide. It builds on the CodeBuild and CodePipeline modules, which provide the mechanisms, and focuses on design: how pull request and merge builds differ, how test results and exit codes control a pipeline, how coverage is measured, and how AWS services are invoked to run load tests and other checks. The same ideas reappear in the deployment modules, where alarms during a bake period act as the final test.
How this module is organised
Designing a Test Strategy for CI/CD Pipelines explains test types, the test pyramid, ephemeral environments and quality gates. Automating Unit Tests, Code Coverage and Health Checks from Exit Codes explains test and coverage reports and how exit codes decide whether a step succeeds. Running Load Tests and Invoking AWS Services for Testing explains load, stress and benchmark tests at scale and the pipeline actions that call Lambda, Step Functions, Amazon Inspector and CodeBuild.
- Designing a Test Strategy for CI/CD Pipelines Lesson 1
- Automating Unit Tests, Code Coverage and Health Checks from Exit Codes Lesson 2
- Running Load Tests and Invoking AWS Services for Testing Lesson 3
- Practise and review
- Checkpoint Practice activities across the module
- Test your knowledge 3 questions