Hacker News new | ask | show | jobs
by derinbay 18 hours ago
a test suite three quarters the size of the product is a lot, but what does it check? if the same agent writes the code and the tests, the tests mostly pass because they were written to pass. i run a few agents on my side projects, and i ended up giving reviews to a separate agent that didn't write the code, and testing each feature on the real app before calling it done
2 comments

Agree that agents can write performative tests that don't mean much. When I run my test suites after making updates typically I do find some regressions, often in the solver kernel or the dataflow. The agents do miss things; the approach I've taken is specifically enforcing tests anytime I find a bug and including tests to confirm intent in initial implementation plan.
You have to give the baseline test scenarios and review the test cases. Then have specific instructions to not modify test cases without authorization. Once the TCs are written and reviewed, you create a file which contain the hashes of the TC files. You can detect if the TC files were modified by checking the hash after the test runs.