All 4,799 reports

YesChatGPT · 12 Jan 2023

in general, when it makes sense to use it, I'm more productive writing tests in this way than manually

davps on Hacker News

In the thread “What if writing tests was a joyful experience?”, replying to this comment

Helped: Iterative prompting, specific instructions, and refactoring code for testability.

Got in the way: Struggles to get context right; requires manual fine-tuning of code.

… the tests and code generated by ChatGPT really helps to catch the subtle bugs it usually generates on the generated code (fixing it manually), usually I get test coverage that proof the robustness I needed for production code. This approach still needs manual fine tuning of the generated code, I think ChatGPT still struggle to get the context right but in general, when it makes sense to use it, I'm more productive writing tests in this way than manually.