Because much of the time I feel the LLM reward hacks itself by adding (or modifying) tests, it write pointless tests or the actual test doesn’t do what the description claims it does.
I almost only use Claude.
That said, I have never been a person that struggled writing tests. For me just prompting for a test takes more time than just writing it - a test shouldn’t be more than a few lines anyway.
It’s also a very useful way to setup a contract and requirements for the model to implement. Especially using BDD patterns. It can’t “forget” about a requirement a few hundred thousand tokens in if it is a test.
View all comments
Show parent comment
2
u/lobax 8d ago
Because much of the time I feel the LLM reward hacks itself by adding (or modifying) tests, it write pointless tests or the actual test doesn’t do what the description claims it does.
I almost only use Claude.
That said, I have never been a person that struggled writing tests. For me just prompting for a test takes more time than just writing it - a test shouldn’t be more than a few lines anyway.
It’s also a very useful way to setup a contract and requirements for the model to implement. Especially using BDD patterns. It can’t “forget” about a requirement a few hundred thousand tokens in if it is a test.