Hacker News new | ask | show | jobs
by symplee 2225 days ago
Can this freaky A.I. also generate the corresponding unit tests?

Or, for TDD, generate the unit tests first based on the function name and description. Then, if the dev updates any of those tests, or adds more tests, use that information in auto generating the appropriate code.

3 comments

Towards the end of that section, he mentions they have also used it to generate unit tests. I doubt it's doing full TDD, but it seems they are part of the way there.
That actually sounds bad.
Great question, I actually think writing test code is harder than writing the product code.
At the end of the chat with OpenAI they mention that their model can be used for generating unit tests as well.