DEV Community

Christian Heilmann
Christian Heilmann

Posted on

GitHub CoPilot now also generates tests for functions

Want to automatically generate tests for your JS/TS functions? GitHub CoPilot now does that.
GitHubNext added a TestPilot experiment that can generate tests for a function by analysing it and scanning the docs and comments.

Animation showing how to create a test for a function by highlighting it

Top comments (1)

t0nyba11 profile image
Tony B

It seems to work well on things that don't really need a unit test ... I guess that makes it just like a human developer :)