All 4,799 reports

NoCursor, Claude · 29 Oct 2024

If I take a lot of time guiding it where to look, it can generate unit tests that pass. But it takes longer than if I write the unit tests myself

DeathArrow on Hacker News

I can write a method in 3 minutes, but Sonnet will write the 8 best test cases in 4 seconds

In the thread “How I write code using Cursor”, replying to this comment

Got in the way: AI fails to mock dependencies or ignore private method logic.

… AI either doesn't properly mock the dependencies, either ignores what happens in the private methods. If I take a lot of time guiding it where to look, it can generate unit tests that pass. But it takes longer than if I write the unit tests myself.