AI Wisdom
Learning Track

Testing Engineering

Unit, integration, snapshot, contract, fuzz and LLM evals — designing tests that catch real regressions without breaking the bank.

9+
Topics
9
Published
100%
Free
Browse articles ↓

9 articlesin Testing Engineering

Testing Engineering
Choosing test doubles: stubs for inputs, fakes for stateful collaborators, mocks only for outgoing commands, and an adapter around third-party SDKs that is itself tested against the real sandbox; front-end HTTP is mocked with MSW.Choosing test doubles: stubs for inputs, fakes for stateful collaborators, mocks only for outgoing commands, and an adapter around third-party SDKs that is itself tested against the real sandbox; front-end HTTP is mocked with MSW.

Mocking Patterns: Stubs, Spies, Fakes, and When Not to Mock

Intermediate

Master test double patterns — distinguish stubs from mocks, use Vitest module mocking, implement MSW for HTTP, and avoid over-mocking that hides real bugs.

Updated 13 min
Read →
Testing Engineering
Shaping a test suite: many fast unit tests, fewer integration tests and a small set of end-to-end journeys, each level with a time budget, sharded in parallel, and coverage measured on changed code plus mutation testing.Shaping a test suite: many fast unit tests, fewer integration tests and a small set of end-to-end journeys, each level with a time budget, sharded in parallel, and coverage measured on changed code plus mutation testing.

Test Architecture Strategy: Pyramid, Trophy, and CI Optimization

Intermediate

Design a scalable test architecture — apply the test pyramid and testing trophy, set meaningful coverage thresholds, and optimise CI pipeline execution time.

Updated 14 min
Read →
Testing Engineering
Snapshot tests that get read: important behaviour gets explicit assertions, snapshots stay small and inline, dynamic values use property matchers, and visual regression screenshots cover appearance.Snapshot tests that get read: important behaviour gets explicit assertions, snapshots stay small and inline, dynamic values use property matchers, and visual regression screenshots cover appearance.

Snapshot Testing: When and How to Use toMatchSnapshot

Foundational

Use snapshot testing effectively — understand inline vs file snapshots, handle dynamic values, avoid snapshot bloat, and know when snapshots add real value.

Updated 11 min
Read →
Testing Engineering
Consumer-driven contract testing with Pact: web and mobile consumers publish contracts to a broker, the provider verifies every deployed consumer version in CI, and can-i-deploy blocks releases that would break a client.Consumer-driven contract testing with Pact: web and mobile consumers publish contracts to a broker, the provider verifies every deployed consumer version in CI, and can-i-deploy blocks releases that would break a client.

Contract Testing with Pact: Consumer-Driven Contracts for Microservices

Intermediate

Implement consumer-driven contract testing with Pact and PactFlow — learn pact files, provider verification, can-i-deploy, and bidirectional contracts.

Updated 15 min
Read →
Testing Engineering
The TDD cycle: write a small failing test, write just enough code to pass, refactor while green, and triangulate with more examples; legacy code gets characterisation tests first.The TDD cycle: write a small failing test, write just enough code to pass, refactor while green, and triangulate with more examples; legacy code gets characterisation tests first.

Test-Driven Development: Red-Green-Refactor in Practice

Intermediate

Apply the TDD cycle — Red-Green-Refactor — to drive better software design. Covers triangulation, outside-in TDD, BDD, and working with legacy code.

Updated 14 min
Read →
Testing Engineering
Reliable Playwright tests: role and label locators, web-first assertions instead of sleeps, a setup project that saves login state, one test account per parallel worker, and traces recorded on the first retry.Reliable Playwright tests: role and label locators, web-first assertions instead of sleeps, a setup project that saves login state, one test account per parallel worker, and traces recorded on the first retry.

E2E Testing with Playwright: Auto-Waiting, Page Objects, and Network Interception

Intermediate

Write reliable end-to-end tests with Playwright — leverage auto-waiting, build Page Object Models, intercept network requests, and eliminate flakiness.

Updated 15 min
Read →
Testing Engineering
Integration tests against real dependencies: Testcontainers starts PostgreSQL, WebApplicationFactory hosts the real API in-process, Respawn resets data between tests, and WireMock stubs outbound HTTP.Integration tests against real dependencies: Testcontainers starts PostgreSQL, WebApplicationFactory hosts the real API in-process, Respawn resets data between tests, and WireMock stubs outbound HTTP.

Integration Testing with Testcontainers and WebApplicationFactory

Intermediate

Build reliable integration tests using Testcontainers for real databases, WebApplicationFactory for ASP.NET Core, and supertest for Node.js APIs.

Updated 14 min
Read →
Testing Engineering
A good unit test checks behaviour through the public API in arrange, act, assert form, injects time and randomness so results are deterministic, shares no state with other tests, and uses table tests for rules.A good unit test checks behaviour through the public API in arrange, act, assert form, injects time and randomness so results are deterministic, shares no state with other tests, and uses table tests for rules.

Unit Testing Principles: AAA, Isolation, and Test Doubles

Foundational

Master the foundational principles of unit testing — Arrange-Act-Assert, test isolation, deterministic tests, and test doubles with Vitest and xUnit.

Updated 12 min
Read →
Testing Engineering
YouTest suiteYour featureMocked modelRecorded repliesLive modelStubbed tools

Testing LLM-Powered Features Without Going Broke

Mock strategies, evaluation harnesses, snapshot testing, and cost-aware CI for LLM-integrated applications.

Updated 9 min
Read →