|
|
|
|
|
by invalidname
1254 days ago
|
|
This sounds like a good theory but the practice of it is really hard. Pretty quickly you end up with tests that "say" one thing but have nuanced different behavior in the underlying implementation. Then try to debug a "document"... I like the idea. But having tried it at scale, it becomes a mess. Code I can understand. I can read English comments. I can't debug English. |
|
We use Spock, which make "comments" a very expected thing, which helps us not let tests without comments pass a code review.
Just use a tool that helps you and stop writing stupid tests whose impl code looks worse than the code being tested.