4 ms·
Yeah, I prefer unit tests over docs. Rather than writing a document saying "Make sure X does Y" Just write a spec checking that X does Y and if it ever stops do
by baroffoos 7y ago
Yeah, I prefer unit tests over docs. Rather than writing a document saying "Make sure X does Y" Just write a spec checking that X does Y and if it ever stops doing that there will be a descriptive error in the CI.
Docs and comments go out of date and people don't know they exist/where to find them. Unit tests are always checked and always maintained.