logoalt Hacker News

stuaxolast Thursday at 2:01 PM2 repliesview on HN

It doesn't generate good tests by default though.

I worked on a team where we had someone come in and help us improve our tests a lot.

The default LLM generated tests are bit like the ones I wrote before that experience.


Replies

LanceHlast Thursday at 6:49 PM

> It doesn't generate good tests by default though.

I agree with this.

I've found I need a whole separate cycle of test writing to get proper (in both scope and accuracy) coverage.

It does help tremendously with all the boilerplate of tests, and it seems to be quite good at setting up numerous tests for all combinations of variables. It does have to be done explicitly, though.

And you do need to mind when a test fails whether it fixes the test or the code.

dnauticslast Thursday at 2:03 PM

this is solvable by prompting and giving good examples?