Program 01 · Module 07 of 8
Module 07: Testing, CI/CD and Release
Prove that the application does what the criteria say, and release it in a controlled way. You turn acceptance criteria into automated tests, run checks on every change and plan how to deploy and roll back.
- Suggested study time
- 6–8 hours
- Prerequisites
- Module 6 complete.; A working capstone application with acceptance criteria.
Sign in to track your progress. Every lesson stays free to read without an account.
Learning outcomes
By the end of this module you will be able to:
- Turn acceptance criteria into unit, integration and end-to-end tests.
- Review assistant-written tests for weak assertions and false confidence.
- Run checks automatically on every change.
- Plan a release with configuration, monitoring and a rollback path.
Lessons
- 7.1
From Criteria to Test Cases
Convert each acceptance scenario into test cases with concrete data and clear expected results, then name the automated tests after the scenarios so nothing is left unchecked.
40 min - 7.2
Unit and Integration Tests
Write fast unit tests for the booking rules and integration tests for the service and database, including a test that two people cannot book the same slot.
45 min - 7.3
Reviewing Assistant-Written Tests
Spot tests that pass for the wrong reasons, assert nothing useful or mirror the code, and prove with a deliberate change that a test can really fail.
40 min - 7.4
Continuous Integration Pipelines
Run linting, type checks and tests automatically on every change, make the checks required, and keep secrets out of the repository.
40 min - 7.5
Releasing and Rolling Back
Prepare a release with environment settings, additive database changes, a smoke test and a rehearsed way back.
40 min
About 3 h 25 min of lessons in total.
Practical assignment
Test and release the capstone
Build the automated checks and release process for your capstone application.
Deliverables
- Tests covering every Must acceptance scenario.
- A pipeline that runs checks on every change.
- A release checklist including environment settings and a rollback plan.
- A note on which assistant-written tests you changed, and why.
Validation checklist
Use this to check your assignment before you move on.
Knowledge check
Show the answer and explanation
Answer: B. A test that cannot fail gives no protection. Passing is tempting as proof, but a test that asserts nothing useful also passes.
Show the answer and explanation
Answer: B. Checks that do not block become noise people ignore. A warning feels gentler, but it lets known errors reach the main branch.
Show the answer and explanation
Answer: B. Under pressure, improvisation causes further errors. Releases do not always fail, so the first option overstates the case, and the pipeline requirement is incidental.
PromptFable is independent and is not affiliated with, endorsed by or sponsored by Anthropic, Google, OpenAI or any other vendor. Claude, Gemini, Google AI Studio and other product names are trademarks of their respective owners.