Skip to main content

Testing code

Discover ways that you can use GitHub Copilot to test your code.

Generating unit tests

Bate-papo do Copilot can help with generating unit tests for a function.

Creating mock objects to abstract layers

Bate-papo do Copilot can help with creating mock objects that you can use for unit tests.

Creating end-to-end tests for a webpage

Bate-papo do Copilot can help with generating end-to-end tests.

Updating unit tests to match code changes

Bate-papo do Copilot can help with updating your tests.