Golden Tests

Use golden files for testing APIs

June 4, 2025 · 4 min

Test smell

This part is mostly about gut feelings. When you are writing tests or updating the code and something feels wrong, that is a sign that this is a test smell. Tests should be your helpers; you should work with them, not against them. Tests are your guide for safe refactoring. Tests should enable refactoring, not prevent it. If it seems you are changing internals but need to rewrite the tests, the tests are not testing the behavior, but rather the implementation. ...

April 28, 2025 · 2 min