Testing tutorials
38 articles · page 2 of 2Hand-written tutorials, ordered as a recommended learning path.
- 21 Cypress E2E Write reliable E2E tests with Cypress — selectors, assertions, network stubbing, custom commands, and CI integration.
- 22 Integration vs Unit Understand the tradeoffs between unit tests and integration tests. Learn the testing pyramid, trophy, and practical strategies for effective test suites.
- 23 Mocking Strategies Learn when and how to mock dependencies in unit tests. Covers stubs, spies, fakes, mock patterns, and how to avoid over-mocking.
- 24 pytest Fixtures Master pytest fixtures for reusable test setup and teardown. Covers scopes, parameterization, factories, autouse, and fixture composition.
- 25 React Testing Library Learn to test React components the right way with React Testing Library. Covers rendering, queries, user events, async testing, and best practices.
- 26 Eval Frameworks A practical overview of evaluation frameworks for AI applications: what they measure, how they differ, and how to pick one that matches your workflow.
- 27 PBT Stop writing one example per test. Property-based testing generates inputs for you and finds the edge cases you would never think to write.
- 28 Contract Tests Understand consumer-driven contract testing, how it differs from integration tests, and how tools like Pact prevent breaking API changes between services.
- 29 Coverage Pitfalls Line, branch, and mutation coverage explained. Learn what each metric tells you, what it hides, and how to use coverage without gaming it.
- 30 Playwright E2E Learn how to write reliable end-to-end tests with Playwright, including selectors, fixtures, auto-waiting, and patterns that avoid flakiness.
- 31 Flaky Tests Diagnose and eliminate flaky tests caused by timing, ordering, shared state, and the network. Build a culture that stops flakes at the source.
- 32 Load Testing with k6 A practical introduction to k6 for load testing HTTP services. Covers scripting, stages, thresholds, and how to read the results without fooling yourself.
- 33 Mocks vs Stubs Pick the right test double for the job. Compare mocks, stubs, fakes, and spies, and learn when to skip them entirely.
- 34 Test Pyramid What the testing pyramid actually means in modern apps, when to deviate, and how to keep each layer giving you the value it is supposed to.
- 35 Snapshot Tests Learn how snapshot tests work, when they shine, and how to keep them maintainable instead of letting them rot into noise.
- 36 Data Builders Stop drowning in fixture noise. Learn the Test Data Builder pattern to create clear, intention-revealing test data that survives schema changes.
- 37 Vitest Tutorial A practical guide to Vitest, the testing framework built for modern JavaScript projects. Setup, syntax, mocking, coverage, and how it differs from Jest in ways that matter.
- 38 Integration Tests A practical look at integration testing alongside unit tests, covering fixtures, real databases in tests, and the right balance with examples in pytest and vitest.