# Testing code

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

## Links

* [Generating unit tests](/en/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/testing-code/generate-unit-tests)

  Copilot Chat can help with generating unit tests for a function.

* [Creating mock objects to abstract layers](/en/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/testing-code/create-mock-objects)

  Copilot Chat can help with creating mock objects that you can use for unit tests.

* [Creating end-to-end tests for a webpage](/en/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/testing-code/create-end-to-end-tests)

  Copilot Chat can help with generating end-to-end tests.

* [Updating unit tests to match code changes](/en/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/testing-code/update-unit-tests)

  Copilot Chat can help with updating your tests.