Hacker News new | ask | show | jobs
by ultrasandwich 107 days ago
> To do this, my agent writes the test, then it deletes the code it covers, reruns the test, confirms it goes red, and finally puts the code back.

Why? Are you aware of red/green/refactor?

1 comments

no op but the tests shouldn't fail on a missing import. it proves nothing. I think what he means is that he makes sure that the test don't pass on testing something else pre-existing. i'm also struggling with vibe coded tests, sometimes they just test for random irrelevant stuff