A Philosophy of Testing
Nov. 23rd, 2021 05:44 pmMy technical blog is very Scala-centric, so not too many of the folks here are interested in it.
But for the programmers in the audience: I just finished posting a long-simmering series of articles about testing Scala services that some of you may find fun. It's somewhat heretical, including premises like:
- Unit tests are mostly a waste of time for idiomatic Scala services.
- You should focus on "scenario tests", that hammer the APIs and stub all externalities.
- 100% test coverage is the only meaningful number, and you should get there.
- Your code should be designed specifically to be testable, including hooks as needed to expose internal events to the test harness.
Not all of it applies to other languages and situations, but a fair amount of it does. So if you are curious about the topic, give it a read -- I'd love to get some conversation going about the topic, either there or here.
(no subject)
Date: 2021-11-24 12:11 am (UTC)(no subject)
Date: 2021-11-24 12:12 am (UTC)Neat! The idea was certainly in the air (I started hearing about this stuff in 1999), but was quite unusual then. That was a foresightful company...