logoalt Hacker News

theoli • today at 6:39 PM • 0 replies • view on HN

The problem with not reading tests is that you don't know if the test really does what the name implies.

I'll immediately riposte against my own statement that this is a small and continuously shrinking problem with LLM generated tests.

Still, if you have a test called transaction_cancellation_reverts_charges_on_all_accounts, and if you have not read the body of the test and confirmed that it indeed tests this, it is a less useful test. I have caught these kinds of errors created with frontier models and in the past few months. The more complex the logic under test, the more likely this problem is.

I am tempted to be of the opinion that an unverified test is equivalent to no test. But in reality I see that having lots of unverified / not-reviewed tests still adds beneficially to coverage and bug prevention. I just hate the feeling of not knowing which tests might be lies. I try to always do a review of tests that "smell" like they are complex enough for an LLM to mess up implementing.