@janvanryswyck@mastodon.social
Post #1730908
2026-04-23 20:09 UTC
Letting the implementation details of the Subject Under Test seep into your test code quickly becomes problematic. It harms readability, forcing readers to decipher the test’s behavior, sometimes even debug it, just to understand what’s happening. Tests should be simple and easy to understand! That’s why it’s crucial to keep the domain knowledge in the production code, and out of your tests.
https://principal-it.eu/2020/09/prevent-domain-knowledge-from-sneaking-into-solitary-tests/
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
Replies (0)
No replies.