How do you learn to write good unit tests? Asking for a me. (Integration tests too)
IMO A big part of it *requires* working in teams. Writing unit tests for your solo project is good practice that yields good code, but unless you put down then revisit whatever it is you were testing months later, you never get good feedback.
-
-
However, if your working on a team project; someone's change breaks code without violating a test; you get good feedback (a new test, complaint, or blame). Or, if every little change fails a test but doesn't violate semantics, you get good feedback.
-
Yeah, this was prompted by working on Mesa, where a PR passed the tests but broke most of the example models, which is a sign that the tests are.... not great.
- 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.