by FabCH · 2w ago · 0 comments
I did a paper on it once, to see what tests devs actually write: https://ieeexplore.ieee.org/document/11081450
I do think it'll be really interesting to use current gen LLMs to look through pre-AI githubs and do a richer profile of the kinds of tests that were hand crafted for high quality projects.
My experience with agents writing tests fully autonomously is that they are mostly ... a waste of their time and mine: they don't really catch the sort of regressions that modern agents are likely to cause.
I've heard much of the commercial value prop of SQLite is their test / regression suite.
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...