#Unit-Tests
4 notas · última:
My Laws of Test Driven Development
Dennis Doomen lists 19 heuristics for TDD-focused tests, emphasizing practical test scope, functional names, clear arrange-act-assert structure, restrained mocking, and readable failures.
The Simplest Case for Unit Tests: Pure Functions
Pure functions are easy to cover with unit tests because their output depends only on inputs. The article shows how tests expose edge cases in strings, money calculations, and math operations.
How to write unit tests
The article explains what unit tests are, how they help with validation, refactoring, modularity, and speed, and suggests starting with scaffolding, mocking, structure, and test-driven development.
How to write unit tests
The page defines unit tests as automatic checks against expectations, explains their value for safety, modularity, and speed, and outlines scaffolding, mocking, structure, and TDD.
