Skip to content

Commit ed39805

Browse files
authored
Merge pull request #54332 from ChrisHowd/April-2026-Update-Develop-Tests-GH-Copilot
Content refresh
2 parents b7b8315 + 68fa55b commit ed39805

12 files changed

Lines changed: 39 additions & 24 deletions

learn-pr/wwl-azure/develop-unit-tests-using-github-copilot-tools/1-introduction.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Introduction
44
metadata:
55
title: Introduction
66
description: "Introduction"
7-
ms.date: 03/03/2026
7+
ms.date: 04/16/2026
88
author: chrishowd
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/develop-unit-tests-using-github-copilot-tools/2-examine-github-copilot-support-unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Examine the unit testing tools and environment
44
metadata:
55
title: Examine the unit testing tools and environment
66
description: "Examine the unit testing tools and environment"
7-
ms.date: 03/03/2026
7+
ms.date: 04/16/2026
88
author: chrishowd
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/develop-unit-tests-using-github-copilot-tools/3-create-unit-tests-generate-tests-smart-action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Create unit tests using the Generate Tests smart action
44
metadata:
55
title: Create unit tests using the Generate Tests smart action
66
description: "Create unit tests using the Generate Tests smart action"
7-
ms.date: 03/03/2026
7+
ms.date: 04/16/2026
88
author: chrishowd
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/develop-unit-tests-using-github-copilot-tools/4-create-unit-tests-inline-chat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Create unit tests using Inline Chat
44
metadata:
55
title: Create unit tests using Inline Chat
66
description: "Create unit tests using Inline Chat"
7-
ms.date: 03/03/2026
7+
ms.date: 04/16/2026
88
author: chrishowd
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/develop-unit-tests-using-github-copilot-tools/5-create-unit-tests-chat-view-modes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Create unit tests using Chat view modes
44
metadata:
55
title: Create unit tests using Chat view modes
66
description: "Create unit tests using Chat view modes"
7-
ms.date: 03/03/2026
7+
ms.date: 04/16/2026
88
author: chrishowd
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/develop-unit-tests-using-github-copilot-tools/6-exercise-develop-unit-tests-github-copliot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Exercise - Develop unit tests using GitHub Copilot
44
metadata:
55
title: Exercise - Develop unit tests using GitHub Copilot
66
description: "Exercise - Develop unit tests using GitHub Copilot."
7-
ms.date: 03/03/2026
7+
ms.date: 04/16/2026
88
author: chrishowd
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/develop-unit-tests-using-github-copilot-tools/7-knowledge-check.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
hidden_question_numbers: ["170CED1A_10","170CED1A_14","170CED1A_2","170CED1A_26","170CED1A_6","170CED1A_51","170CED1A_55","170CED1A_59","170CED1A_63","170CED1A_67","170CED1A_83"]
66
title: Module assessment
77
description: "Knowledge check"
8-
ms.date: 03/03/2026
8+
ms.date: 04/16/2026
99
author: chrishowd
1010
ms.author: cahowd
1111
ms.topic: unit
@@ -21,7 +21,7 @@ quiz:
2121
choices:
2222
- content: "It automatically writes all the test cases for the solution."
2323
isCorrect: false
24-
explanation: "Incorrect. GitHub Copilot Chat does not automatically write all the test cases for a solution. It does generate unit tests based on the code specified by the user."
24+
explanation: "Incorrect. GitHub Copilot Chat doesn't automatically write all the test cases for a solution. It does generate unit tests based on the code specified by the user."
2525
- content: "It only suggests possible input parameters and expected output values."
2626
isCorrect: false
2727
explanation: "Incorrect. While GitHub Copilot Chat does suggest possible input parameters and expected output values, it also suggests assertions and can help identify edge cases and boundary conditions."
@@ -38,7 +38,7 @@ quiz:
3838
explanation: "Correct. The Test Explorer is used to run and debug unit tests, view test results, and manage test cases in the workspace."
3939
- content: "To generate test cases based on the code context."
4040
isCorrect: false
41-
explanation: "Incorrect. The Test Explorer does not generate test cases, but provides a user interface to manage and run existing test cases."
41+
explanation: "Incorrect. The Test Explorer doesn't generate test cases, but provides a user interface to manage and run existing test cases."
4242
- content: "What is the purpose of generating assertions to ensure that function input parameters are valid?"
4343
choices:
4444
- content: "To enhance the performance of the function."
@@ -65,10 +65,10 @@ quiz:
6565
choices:
6666
- content: "It automatically implements code changes across multiple files in the workspace."
6767
isCorrect: false
68-
explanation: "Incorrect. The Plan agent does not make code changes. The Plan agent creates a structured implementation plan, which can then be handed off to the Agent for implementation."
68+
explanation: "Incorrect. The Plan agent doesn't make code changes. The Plan agent creates a structured implementation plan, which can then be handed off to the Agent for implementation."
6969
- content: "It creates a structured, step-by-step implementation plan before writing any code."
7070
isCorrect: true
7171
explanation: "Correct. The Plan agent researches the task comprehensively, asks clarifying questions, and produces a step-by-step plan. Once the plan is reviewed and approved, it can be handed off to the Agent for implementation."
7272
- content: "It runs tests and generates test reports for the project."
7373
isCorrect: false
74-
explanation: "Incorrect. The Plan agent does not run tests or generate reports. The Plan agent creates a detailed implementation plan that can be handed off to the Agent for implementation."
74+
explanation: "Incorrect. The Plan agent doesn't run tests or generate reports. The Plan agent creates a detailed implementation plan that can be handed off to the Agent for implementation."

learn-pr/wwl-azure/develop-unit-tests-using-github-copilot-tools/8-summary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Summary
44
metadata:
55
title: Summary
66
description: "Summary"
7-
ms.date: 03/03/2026
7+
ms.date: 04/16/2026
88
author: chrishowd
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-azure/develop-unit-tests-using-github-copilot-tools/includes/2-examine-github-copilot-support-unit-tests.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ GitHub Copilot Chat uses your code's context and semantics to suggest assertions
99

1010
GitHub Copilot can help with the following testing tasks:
1111

12-
- Set up testing frameworks: get help configuring the right testing framework and VS Code extensions for your project and language.
12+
- Set up testing frameworks: get help configuring the right testing framework and Visual Studio Code extensions for your project and language.
1313
- Generate test code: create unit tests, integration tests, and end-to-end tests that cover your application code.
1414
- Handle edge cases: generate comprehensive test suites to cover edge cases and error conditions.
1515
- Fix failing tests: receive suggestions for fixing test failures.
1616
- Maintain consistency: personalize GitHub Copilot to generate tests that follow your project's coding practices.
1717

1818
### Set up your testing framework
1919

20-
To accelerate your testing workflow, GitHub Copilot can help set up the testing framework and VS Code extensions for your project. GitHub Copilot suggests appropriate testing frameworks based on your project type.
20+
To accelerate your testing workflow, GitHub Copilot can help set up the testing framework and Visual Studio Code extensions for your project. GitHub Copilot suggests appropriate testing frameworks based on your project type.
2121

2222
1. Open the Chat view.
2323

@@ -55,7 +55,7 @@ Alternatively, you can:
5555
1. Follow GitHub Copilot's suggestions to fix the test
5656

5757
> [!TIP]
58-
> When using GitHub Copilot in Agent mode, the agent monitors the test output when running tests, and automatically attempts to fix and rerun failing tests.
58+
> When using the Agent, the agent monitors the test output when running tests, and automatically attempts to fix and rerun failing tests.
5959
6060
### Maintain consistency
6161

learn-pr/wwl-azure/develop-unit-tests-using-github-copilot-tools/includes/4-create-unit-tests-inline-chat.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@ To create unit tests using Inline Chat, follow these steps:
66

77
1. Open the file that contains the code you want to test.
88

9-
1. Select the code block that you want to test.
9+
1. Select the code block that needs to be tested using a unit test (typically a function or method).
1010

1111
1. Open an Inline Chat session.
1212

1313
Use the **Ctrl+I** keyboard shortcut to open the Inline Chat session. Alternatively, you can select **Editor Inline Chat** from one of the GitHub Copilot menus.
1414

15-
1. Enter a prompt that generates unit tests for the selected code.
15+
> [!NOTE]
16+
> If the file is part of an active Chat agent session, pressing **Ctrl+I** generates the option to "Add File to Chat" or "Add Selection to Chat". To always use regular inline chat, set `inlineChat.askInChat` to `false` in Visual Studio Code settings.
17+
18+
1. Select the **Add Selection to Chat** option.
19+
20+
1. In the Chat view, enter a prompt that generates unit tests for the selected code.
1621

1722
For example: "/tests Generate unit tests for this method. Validate both success and failure, and include edge cases."
1823

0 commit comments

Comments
 (0)