3 ms·
I think AI code generation will really amplify the importance of unit tests. If you can enumerate all the corner cases using tests then tell the AI to write co
by CuriouslyC 4y ago
I think AI code generation will really amplify the importance of unit tests. If you can enumerate all the corner cases using tests then tell the AI to write code that does XYZ and passes the given tests, that's very powerful.
- SketchySeaBeast 4y agoTrue, and honestly, if it turns out I can write unit tests all day I'll actually be a happy camper, I love thinking through problems and trying to account for issues, but I can guess how we will be encouraged to generate the unit tests in this new paradigm.
- TrickardRixx 4y agoIs there a way to give ChatGPT a test suite and ask it for code that passes the suite?
- CuriouslyC 4y agoNot as part of ChatGPT, you need to write/use a tool that takes a test and a prompt and re-runs the prompt until the output passes the test.
- SketchySeaBeast 4y agoSounds like someone should corner that market ASAP.
- andsoitis 4y agoI’d prompt the AI to write the unit tests too. I know what the corner cases are. It doesn’t (yet).