Back to Tags
Unit Testing
4 items tagged with "unit-testing"
Filter by type:
Best Practices2
Best Practice
The Test Pyramid
A testing strategy that favors many fast unit tests, fewer integration tests, and a small number of slow end-to-end tests.
Best Practice
Test-Driven Development (TDD)
A development discipline where you write a failing test first, write minimal code to pass it, then refactor, in short red-green-refactor cycles.
Anti-Patterns2
Anti-Pattern
Assertion Roulette
A test with many unlabeled assertions, so when one fails it is unclear which condition broke or why, slowing diagnosis.
Anti-Pattern
Excessive Mocking (Mockery)
Replacing nearly every collaborator with mocks so tests verify interactions instead of behavior, becoming brittle and detached from reality.