Conversation
Notices
-
Embed this notice
tests are taking 100x longer than writing the god damn program
- soberano likes this.
-
Embed this notice
about ready to say fuck it
-
Embed this notice
@mangeurdenuage @sun
When I was taught to do TDD originally my mentor would always stress to write the failing tests first (ie. ensure it fails gracefully, produces proper exceptions, etc). Unless the interface is overloaded it generally only needs a single passing test case, though maybe with a variety of (possibly random) data. That said, I also learned TDD in Perl which is weakly typed (and therefore requires a bit more care), but also has very good built-in test frameworks.
-
Embed this notice
@toiletpaper @sun I'll note that the wrong "things" are/can be a subset of generally known issues that can be more or less made into generic testing tho (and still you can't trust them at 100%). But otherwise you're correct.
-
Embed this notice
@sun
That's basically always true, because you're supposed to write the tests to cover all the wrong things that will fail before you deal with the limited subset of right things that don't. Gods forbid you decide to change the interface...