Skip to content

Commit c5108aa

Browse files
committed
edits
1 parent 4a79e11 commit c5108aa

3 files changed

Lines changed: 39 additions & 13 deletions

File tree

docs/test/improve-code-quality.md

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,19 @@ Visual Studio is also extensible and opens the door for third-party unit testing
4141
> [!NOTE]
4242
> Live unit testing is available in Enterprise edition only and is only supported for .NET code.
4343
44-
## IntelliTest
44+
::: moniker range="visualstudio"
45+
## AI tools to generate tests
4546

46-
IntelliTest automatically generates unit tests and test data for your managed code. IntelliTest improves coverage and dramatically reduces the effort to create and maintain unit tests for new or existing code.
47+
Starting in Visual Studio 2026 Insiders build, you can use GitHub Copilot testing for .NET to automatically generate unit tests. GitHub Copilot testing for .NET not only generates the tests, but debugs the tests, and runs them in Test Explorer. For more information, see [Overview of GitHub Copilot testing for .NET](../test/github-copilot-test-dotnet-overview.md). This is the recommended method to generate tests.
4748

48-
![IntelliTest in action](media/devtest-intellitest.png)
49+
Alternatively, you can use Copilot `/tests` slash command to generate unit tests from code. For example, you can type `/tests using NUnit Framework` to generate NUnit tests. For more information, see [Use slash commands in Copilot Chat](../ide/copilot-chat-context.md#slash-commands).
50+
::: moniker-end
4951

50-
> [!NOTE]
51-
> IntelliTest is available in Enterprise edition only. It is supported for C# code that targets the .NET Framework. .NET Core and .NET Standard are not currently supported.
52+
::: moniker range="=vs-2022"
53+
## AI tools to generate tests
5254

53-
* [Generate unit tests for your code with IntelliTest](generate-unit-tests-for-your-code-with-intellitest.md)
54-
* [IntelliTest – One test to rule them all](https://devblogs.microsoft.com/devops/intellitest-one-test-to-rule-them-all/)
55-
* [IntelliTest reference manual](intellitest-manual/index.md)
55+
You can use Copilot `/tests` slash command to generate unit tests from code. For example, you can type `/tests using NUnit Framework` to generate NUnit tests. For more information, see [Use slash commands in Copilot Chat](../ide/copilot-chat-context.md#slash-commands).
56+
::: moniker-end
5657

5758
## Code coverage
5859

@@ -90,6 +91,26 @@ Code coverage is an option when you run test methods using Test Explorer. The re
9091

9192
::: moniker-end
9293

94+
## IntelliTest
95+
96+
IntelliTest automatically generates unit tests and test data for your managed code. IntelliTest improves coverage and dramatically reduces the effort to create and maintain unit tests for new or existing code.
97+
98+
![IntelliTest in action](media/devtest-intellitest.png)
99+
100+
> [!NOTE]
101+
> IntelliTest is available in Enterprise edition only. It is supported for C# code that targets the .NET Framework. .NET Core and .NET Standard are not supported.
102+
103+
* [Generate unit tests for your code with IntelliTest](generate-unit-tests-for-your-code-with-intellitest.md)
104+
* [IntelliTest – One test to rule them all](https://devblogs.microsoft.com/devops/intellitest-one-test-to-rule-them-all/)
105+
* [IntelliTest reference manual](intellitest-manual/index.md)
106+
107+
::: moniker range="visualstudio"
108+
[!INCLUDE [intellitest-deprecation](includes/intellitest-deprecation.md)]
109+
::: moniker-end
110+
::: moniker range="vs-2022"
111+
[!INCLUDE [intellitest-visual-studio-2022](includes/intellitest-visual-studio-2022.md)]
112+
::: moniker-end
113+
93114
::: moniker range="<=vs-2019"
94115
## User interface testing with Coded UI and Selenium
95116

docs/test/index.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ landingContent:
4343
url: getting-started-with-unit-testing.md
4444
- text: Run unit tests with Test Explorer
4545
url: run-unit-tests-with-test-explorer.md
46-
- text: Generate unit tests using AI (.NET)
47-
url: unit-testing-with-github-copilot-test-dotnet.md
4846
- linkListType: how-to-guide
4947
links:
5048
- text: Code coverage - Determine how much code is being tested
@@ -55,12 +53,12 @@ landingContent:
5553
linkLists:
5654
- linkListType: tutorial
5755
links:
56+
- text: Generate unit tests using AI (.NET)
57+
url: unit-testing-with-github-copilot-test-dotnet.md
5858
- text: Create and run unit tests for managed code
5959
url: walkthrough-creating-and-running-unit-tests-for-managed-code.md
6060
- text: Get started with Live Unit Testing
6161
url: live-unit-testing-start.md
62-
- text: Generate unit tests (IntelliTest)
63-
url: generate-unit-tests-for-your-code-with-intellitest.md
6462
- text: Test execution with Hot Reload
6563
url: test-execution-with-hot-reload.md
6664
- linkListType: how-to-guide

docs/test/unit-test-your-code.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Explore unit test tools and tasks
33
description: Learn about the unit test tools you can use to give developers and testers a quick way to look for logic errors in your code.
4-
ms.date: 12/05/2023
4+
ms.date: 11/25/2025
55
ms.topic: article
66
helpviewer_keywords:
77
- Visual Studio, unit tests
@@ -28,7 +28,14 @@ The unit test tools include:
2828

2929
* **Microsoft Fakes isolation framework**&mdash;The Microsoft Fakes isolation framework can create substitute classes and methods for production and system .NET code that create dependencies in the code under test. By implementing the fake delegates for a function, you control the behavior and output of the dependency object.
3030

31+
::: moniker range="visualstudio"
32+
Starting in Visual Studio 2026 Insiders build, you can use GitHub Copilot testing for .NET to automatically generate unit tests. GitHub Copilot testing for .NET not only generates the tests, but debugs the tests, and runs them in Test Explorer. For more information, see [Overview of GitHub Copilot testing for .NET](../test/github-copilot-test-dotnet-overview.md). This is the recommended method to generate tests.
33+
34+
Alternatively, you can use Copilot `/tests` slash command to generate unit tests from code. For example, you can type `/tests using NUnit Framework` to generate NUnit tests. For more information, see [Use slash commands in Copilot Chat](../ide/copilot-chat-context.md#slash-commands).
35+
::: moniker-end
36+
::: moniker range="<= vs-2022"
3137
For .NET, you can also use [IntelliTest](../test/generate-unit-tests-for-your-code-with-intellitest.md) to explore your code and generate test data and a suite of unit tests. For every statement in the code, a test input is generated that will execute that statement. A case analysis is performed for every conditional branch in the code.
38+
::: moniker-end
3239

3340
## Key tasks
3441

0 commit comments

Comments
 (0)