4 ms·
>TDD being a typical example Shots fired! I love tests, but I mostly agree with you. The whole idea of 'write your tests first' is great if everything is pre
by wing-_-nuts 3y ago
>TDD being a typical example
Shots fired! I love tests, but I mostly agree with you. The whole idea of 'write your tests first' is great if everything is precisely defined. I find it odd I haven't seen more pragmatism around unit testing in the blogosphere. It's TDD or death out there.
- MoreQARespect 3y agoWhere not everything is precisely defined but "you know the right outcome when you see it" is where I think snapshot test driven development really shines: https://hitchdev.com/hitchstory/approach/snapshot-test-driven-development/ https://hitchdev.com/hitchstory/approach/snapshot-test-drive... E.g. "define API call -> don't define API response -> write the code that spits out the correct response -> auto-rewrite the test according to the response and commit".