logoalt Hacker News

chriswarbo • yesterday at 8:52 PM • 0 replies • view on HN

> at the end of the day, developers will write whatever works for them in the moment, and not care if it fits your theoretical box.

That's description versus prescription: we should still be able to describe those "whatever works" tests, in a non-judgemental/loaded way, that others will interpret in the way it was intended.

I've worked on teams which, if shown the exact same test, would describe it with completely different terms (e.g. "functional unit test" versus "behaviour-driven integration test", etc.); and who, if asked to write a particular type of test (e.g. "check the DB code with a few integration tests"), would interpret that in completely different ways (say, one team might interpret that as "test how it actually works against a real RDBMS", whilst the other might interpret that as "test that the Query class instantiates Result instances correctly", or whatever).

It would be nice to have terminology which has a particular meaning, and for that to be stable over time. I've actually written about this before:

http://www.chriswarbo.net/blog/2017-11-10-unit_testing_termi...

http://www.chriswarbo.net/blog/2020-07-07-more_testing_termi...