logoalt Hacker News

gaigalaslast Wednesday at 7:20 AM1 replyview on HN

> Ask it to write tests that maximise code coverage

That is significantly harder to do than writing an implementation from tests, especially for codebases that previously didn't have any testing infrastructure.


Replies

skissanelast Wednesday at 8:18 AM

Give a coding agent a codebase with no tests, and tell it to write some, it will - if you don’t tell it which framework to use, it will just pick one. No denying you’ll get much better results if an experienced developer provides it with some prompting on how to test than if you just let it decide for itself.

show 1 reply