testing
Practical resources about testing for software engineers.
89 results
Testing Strategies That Ship with Confidence
Testing is not just about catching bugs — it is about shipping faster, refactoring without fear, and documenting behavior through executable specs. A well-tested codebase reduces incident response time and onboarding friction for new developers.
Explore recipes for unit testing with mocks, integration testing with real dependencies, end-to-end testing with Playwright, and load testing with k6. Each pattern includes setup instructions, assertion strategies, and CI/CD integration tips.
Mock External APIs with responses Library
How to mock HTTP API calls in Python tests using the responses library, including status codes,...
Pytest Fixtures and Parametrize
How to use pytest fixtures and @pytest.mark.parametrize to write data-driven tests with reusable...
Setup Test Fixtures
How to manage test fixtures with factory patterns, setup/teardown hooks, and deterministic data for...
Unit Testing
How to write fast, deterministic unit tests with mocks and assertions in Python, JavaScript, and...
Write Unit Tests with Mocks and Stubs
How to isolate code under test using mock objects, stubs, and spies to replace external...
Contract Testing: Verify Consumer-Producer API Contracts
How to use contract testing to verify that API producers and consumers agree on request and...
Fixture Setup/Teardown: Reusable Test Context Lifecycle
How to use setup and teardown fixtures to create reusable test context. Covers beforeEach, factory...
Golden Master Testing
How to use golden master testing to characterize legacy code behavior before refactoring. Covers...
Mock Server: Stand Up a Mock Server for Integration Test
How to use mock servers to isolate integration tests from external dependencies. Covers WireMock,...
Parameterized Test: Run the Same Logic Across Multiple
How to write parameterized tests to verify the same logic across multiple inputs. Covers pytest...
Snapshot Testing: Capture and Compare Serialized Output
How to use snapshot testing to detect unintended changes in serialized output. Covers Jest...
Test Double: Replace Dependencies with Stubs, Spies, Fakes
How to use test doubles to isolate units under test. Covers stubs, spies, fakes, mocks, and dummy...
Test Pyramid: Balance Unit, Integration
How to structure a test suite using the test pyramid. Covers unit, integration, and E2E test...
Data Governance Policy Template
A template for data classification, retention, access control, privacy, and compliance policies...
Data Pipeline Design Document Template
A template for documenting data pipeline sources, transformations, sinks, scheduling, error...
Data Quality Rules Template
A template for defining data validation rules per dataset and column: completeness, consistency,...
ETL Job Runbook Template
A runbook for operating, monitoring, and troubleshooting ETL jobs: startup, shutdown, health...
CI/CD Pipeline Design Template
A template for documenting CI/CD pipeline stages, gates, environments, deployment strategies,...
Code Review Checklist Template
A structured checklist template for conducting consistent, thorough code reviews that catch bugs,...
Helm Chart Review Checklist
A checklist for reviewing Helm charts covering values, templates, security, resource limits,...
No results found.