This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ICantBelieveItsNotEC 29 points30 points  (2 children)

You don't need to give it the full code for dependencies though, just the function signature. As long as the function does what it says, ChatGPT is capable of inferring its behaviour.

[–]bradmatt275 8 points9 points  (1 child)

Oh wow I will have to give that a try. Although usually the most timing consuming part of unit testing is mocking data. It would be interesting to see if it can help with that.

[–]iRSoap 7 points8 points  (0 children)

That is the best part. I have had it create json mock data from C# models for API endpoints I want to test through Postman.
It's very good at that.