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.

intermediate

Mock External APIs with responses Library

How to mock HTTP API calls in Python tests using the responses library, including status codes,...

intermediate

Pytest Fixtures and Parametrize

How to use pytest fixtures and @pytest.mark.parametrize to write data-driven tests with reusable...

beginner

Setup Test Fixtures

How to manage test fixtures with factory patterns, setup/teardown hooks, and deterministic data for...

beginner

Unit Testing

How to write fast, deterministic unit tests with mocks and assertions in Python, JavaScript, and...

beginner

Write Unit Tests with Mocks and Stubs

How to isolate code under test using mock objects, stubs, and spies to replace external...

advanced

Contract Testing: Verify Consumer-Producer API Contracts

How to use contract testing to verify that API producers and consumers agree on request and...

beginner

Fixture Setup/Teardown: Reusable Test Context Lifecycle

How to use setup and teardown fixtures to create reusable test context. Covers beforeEach, factory...

advanced

Golden Master Testing

How to use golden master testing to characterize legacy code behavior before refactoring. Covers...

intermediate

Mock Server: Stand Up a Mock Server for Integration Test

How to use mock servers to isolate integration tests from external dependencies. Covers WireMock,...

beginner

Parameterized Test: Run the Same Logic Across Multiple

How to write parameterized tests to verify the same logic across multiple inputs. Covers pytest...

testing parameterized data-driven test-case
intermediate

Snapshot Testing: Capture and Compare Serialized Output

How to use snapshot testing to detect unintended changes in serialized output. Covers Jest...

intermediate

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...

intermediate

Test Pyramid: Balance Unit, Integration

How to structure a test suite using the test pyramid. Covers unit, integration, and E2E test...

intermediate

Data Governance Policy Template

A template for data classification, retention, access control, privacy, and compliance policies...

intermediate

Data Pipeline Design Document Template

A template for documenting data pipeline sources, transformations, sinks, scheduling, error...

intermediate

Data Quality Rules Template

A template for defining data validation rules per dataset and column: completeness, consistency,...

intermediate

ETL Job Runbook Template

A runbook for operating, monitoring, and troubleshooting ETL jobs: startup, shutdown, health...

intermediate

CI/CD Pipeline Design Template

A template for documenting CI/CD pipeline stages, gates, environments, deployment strategies,...

beginner

Code Review Checklist Template

A structured checklist template for conducting consistent, thorough code reviews that catch bugs,...

code-review checklist quality-assurance team-process
intermediate

Helm Chart Review Checklist

A checklist for reviewing Helm charts covering values, templates, security, resource limits,...

No results found.