Testing and Quality Engineering
Build a working model of automated testing from assertions to unit, component, API, integration, contract and end-to-end tests, then apply it to a single progressive task-board capstone where each milestone adds a real defect, a failing test, a corrected implementation and an expected result.
What you will be able to do
#- Explain what an assertion proves, what a failing test means and what a passing test does not prove.
- Write isolated, deterministic unit tests for pure functions, including boundary and negative cases.
- Choose between stubs, spies, mocks and fakes and justify the choice for a given dependency.
- Test asynchronous code, timers and network calls without real delays or real servers.
- Test components through accessible queries and real user events rather than implementation details.
- Distinguish unit, integration, contract, end-to-end and mutation testing and place each on a test strategy.
- Diagnose flaky tests and describe deterministic fixes instead of retries.
- Extend the quality-task-board capstone with tests that fail for a concrete defect and pass after a concrete fix.
Prerequisites
#Lessons
#Assertions: What a Test Actually Proves
beginner · 30 minutes · 6 exercises
Describe a test as setup, action and one or more assertions.
Test Structure, Isolation and Determinism
beginner · 30 minutes · 6 exercises
Structure a test with clear setup, action and assertion phases.
Test Doubles: Stubs, Spies, Mocks and Fakes
beginner · 35 minutes · 6 exercises
Distinguish stubs, spies, mocks and fakes by purpose.
Unit Testing Pure Functions
beginner · 30 minutes · 6 exercises
Identify the unit boundary of a function.
Edge Cases, Boundaries and Table-Driven Tests
intermediate · 35 minutes · 6 exercises
Partition inputs into equivalence classes.
Testing Asynchronous Code and Timers
intermediate · 40 minutes · 6 exercises
Await asynchronous assertions instead of asserting before they settle.
Component Testing with the DOM
intermediate · 40 minutes · 6 exercises
Render a component into a DOM container and query its output.
Accessible Queries and Real User Events
intermediate · 35 minutes · 6 exercises
Query elements by their accessible role and name.
Testing Network Calls and API Clients
intermediate · 40 minutes · 6 exercises
Replace the network with a controllable double.
Integration Testing Across Modules
intermediate · 40 minutes · 6 exercises
Compose real units and double only the outer boundary.
End-to-End Testing in a Real Browser
advanced · 45 minutes · 6 exercises
Describe what an end-to-end test proves that lower layers cannot.
Consumer-Driven Contract Testing
advanced · 45 minutes · 6 exercises
Explain the problem contract testing solves between services.
Mutation Testing: Measuring Test Strength
advanced · 45 minutes · 6 exercises
Explain what a mutation is and what a surviving mutant reveals.
Coverage and Honest Quality Signals
intermediate · 35 minutes · 6 exercises
Distinguish statement, branch and path coverage.
Flaky Tests and Deterministic Fixes
advanced · 40 minutes · 6 exercises
Recognize the common sources of test flakiness.
Capstone: Testing the Quality Task Board
advanced · 60 minutes · 6 exercises
Apply the full testing spectrum to one continuous application.
Test Data, Fixtures and Builders
intermediate · 35 minutes · 6 exercises
Create fixtures that are minimal and readable.
Errors, Negative Paths and Failure Injection
intermediate · 35 minutes · 6 exercises
Test that errors are thrown with the right type and message.
Snapshot Testing and Its Pitfalls
intermediate · 30 minutes · 6 exercises
Explain what a snapshot test captures and when it is useful.
Performance and Load Testing Basics
advanced · 40 minutes · 6 exercises
Distinguish a performance assertion from a functional assertion.
Visual Regression Testing
advanced · 35 minutes · 6 exercises
Explain what a visual regression test compares.
Security-Oriented Tests
advanced · 40 minutes · 6 exercises
Test input validation against hostile input.
Wiring Tests into CI Quality Gates
intermediate · 35 minutes · 6 exercises
Describe the stages of a test pipeline and what each blocks.
Choosing a Test Strategy
advanced · 40 minutes · 6 exercises
Compare the test pyramid, the trophy and the ice-cream cone.
Capstone project
#The capstone opens the authored project in the browser-local playground. Milestones labeled native-ci or local-node cannot run in the browser sandbox: they open their files only, and their expected logs are authored expectations, not captured runs.
Loading the capstone project...
Study journeys
#Skip-ahead journeys never remove a requirement. The prerequisite graph always reports the full chain; a skip-ahead course only marks where an assessment may substitute for study.
Quality engineering track
QA or test automation engineer
Move from assertions to unit, component, API, integration and end-to-end gates, then wire them into delivery.
- JavaScript Foundationsskip by assessment
- Testing and Quality Engineeringyou are here
- CI/CD and Delivery Engineering
- Debugging and Code Review
Next in this journey: CI/CD and Delivery Engineering