I worked with a junior dev the other day on writing unit tests for one method, to show him how unit tests should be done. It took about 30 minutes. It required about 4 test cases and setup of the class, etc.

At the end, for lolz, we put the method into ChatGPT and told it to write unit tests. It took 30 seconds. It wrote the same tests I did.

Reply to this note

Please Login to reply.

Discussion

Yeah, for unit test and even commenting your code it works really well...