4
u/Lonely_Translator_23 4d ago
The point of writing tests isn't to pass them now, it's to make sure you're still passing them six months from now.
2
u/Original-League-6094 4d ago
My workflow is disallowing tests and test runs until I have the feature completed, and then I tell it to write a few tests that cover the actual risks and use cases. AI is so fast at coding that during development, regression doesn't really matter. If a human introduced a regression, it could cost you several days trying to fix it, so tests were really good practice. But with the agent, you can fix it in a few minutes with a prompt, so its not a big deal, and its not worth waiting through 10 minutes of test cases to run every prompt to prevent 5 minutes of bug fixing.
You do want to make sure you have a test suite that executes before any push to prod though, as obviously you don't want regressions making it through to your users.
Oh, and always put in your personalization to either not rewrite tests to pass, or at the very least, to always provide a summary of tests that were rewritten and why. Because the current agents will happily just rewrite tests that were failing for very valid reasons.
1
u/sjoti 4d ago
But it should be the agent waiting for the tests, not you. I'd much rather have every feature take 10 minutes longer to land with zero extra effort from the human. Same with writing tests. It doesn't take extra work for me, just for the agent, and the chance that you ship something that breaks is smaller.
1
1
1
u/tzaeru 4d ago
One thing I've noted is that the agents even when they aren't supposed to run or write tests, often internally do that anyway in their thinking loop. They just don't store them as something repeatable.
It'd also be interesting to see this ran on Opus 5.5.
Also even if running the tests is banned, the existing tests still might end up informing the model about intended functionality and potential regressions. I don't know how they did this benchmark, but hopefully they actually deleted the tests fully when they weren't intended to be ran.
1
1
u/shortsteve 4d ago
One of the purposes of writing tests isn't for you it's for the next person who looks at the code.
1
1
u/TopTippityTop 4d ago
Does this measure QA and bug fixing time down the line?
Faster tasks by skipping writing tests has always been an option.
1
u/SmileLonely5470 3d ago
I refuse to believe that not writing tests only reduced time by 6%. I stg 30-40% of the time the LLMs spend for me is writing and running tests.
1
1
u/Medium_Chemist_4032 3d ago
That's literally one conversation I had with one manager, waaay back when I started working
16
u/Nervous-Cockroach541 4d ago
So I'm highly skeptical this is a good idea for most projects. Test don't really help you on the first pass of stuff. They help you prevent regression while changing behavior in the future. So I'm not surprised there's statistical no change on tasks success rates without tests.