Develop unit tests using GitHub Copilot tools

Intermediate
Developer
GitHub

This module explores using the GitHub Copilot and GitHub Copilot Chat extensions for Visual Studio Code to create unit tests. Unit test projects are used to verify that the unit tests build and run successfully.  

Learning objectives

By the end of this module, you'll be able to:

  • Create unit tests using the GitHub Copilot and GitHub Copilot Chat extensions for Visual Studio Code.

  • Create unit tests that target edge cases and specific conditions using the GitHub Copilot and GitHub Copilot Chat extensions for Visual Studio Code.

  • Use Visual Studio Code, the .NET SDK, and the C# Dev Kit extension to create a test project and verify that your unit tests build and run successfully.

Prerequisites

  • An active subscription for GitHub Copilot is required for either your personal GitHub account or a GitHub account managed by an organization or enterprise.

  • Experience using the GitHub Copilot and GitHub Copilot Chat extensions for Visual Studio Code to generate autocompletion suggestions and explain existing code.

  • One or more years of software development experience is recommended.

  • Experience developing C# applications using Visual Studio Code and the C# Dev Kit extension is recommended.

  • An awareness that if you choose to complete the training using a free GitHub Copilot trial, you will be asked for a form of payment when signing up for the free GitHub Copilot trial. You won't be charged until the trial is over, unless you cancel prior to the conclusion of the 30-day period.