Skip to content

Commit d492e3f

Browse files
committed
article refresh
1 parent e5b81fc commit d492e3f

File tree

1 file changed

+25
-16
lines changed

1 file changed

+25
-16
lines changed

docs/test/install-third-party-unit-test-frameworks.md

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,64 @@
11
---
2-
title: Install third-party unit test frameworks
3-
description: Visual Studio Test Explorer can run tests from any unit test framework that has developed an adapter interface for it.
4-
ms.date: 12/04/2023
2+
title: Install Third-party Unit Test Frameworks
3+
description: Visual Studio Test Explorer can run tests from any unit test framework that has an adapter interface available.
4+
ms.date: 04/17/2025
55
ms.topic: how-to
66
ms.author: mikejo
77
manager: mijacobs
88
ms.subservice: test-tools
99
author: mikejo5000
10+
#customer intent: As a developer, I want to install unit test frameworks from other parties so I can run unit tests from any unit test framework in Visual Studio.
1011
---
1112
# Install unit test frameworks
1213

13-
Visual Studio Test Explorer can run tests from any unit test framework that has developed an adapter interface for it. Installing the framework copies the binaries and adds Visual Studio project templates for the languages it supports. When you create a project with the template, the framework is registered with Test Explorer.
14+
Visual Studio Test Explorer can run tests from any unit test framework that has an adapter interface available. Installing the framework copies the binaries and adds Visual Studio project templates for the languages it supports. When you create a project with the template, the framework is registered with Test Explorer.
1415

1516
A Visual Studio solution can contain unit test projects that use different frameworks and that are targeted at different languages.
1617

17-
For .NET, [MSTest, NUnit, and xUnit](getting-started-with-unit-testing.md) are the test frameworks provided by Visual Studio which are installed by default. For C++, a different set of test frameworks are provided, such as CTest.
18+
For .NET, [MSTest, NUnit, and xUnit](getting-started-with-unit-testing.md) are the test frameworks provided by Visual Studio, which are installed by default. For C++, a different set of test frameworks are provided, such as CTest.
1819

1920
## Acquire frameworks
2021

21-
Install third-party unit test frameworks by using **NuGet Package Manager**.
22+
Install third-party unit test frameworks by using **NuGet Package Manager**:
2223

23-
1. Right-click on the project that will contain your test code and select **Manage NuGet Packages**.
24+
1. In **Solution Explorer**, right-click the project for your test code, and select **Manage NuGet Packages**.
2425

25-
2. In **NuGet Package Manager**, search for the test framework you want to install, and then click **Install**.
26+
1. In **NuGet Package Manager**, search for the test framework you want to install:
2627

2728
::: moniker range=">=vs-2022"
28-
![NuGet Package Manager in Visual Studio](media/vs-2022/nuget-package-manager.png)
29+
:::image type="content" source="media/vs-2022/nuget-package-manager.png" alt-text="Screenshot of NuGet Package Manager in Visual Studio 2022.":::
2930
::: moniker-end
3031
::: moniker range="vs-2019"
31-
![NuGet Package Manager in Visual Studio](media/vs-2019/nuget-package-manager.png)
32+
:::image type="content" source="media/vs-2019/nuget-package-manager.png" alt-text="Screenshot of NuGet Package Manager in Visual Studio 2019.":::
3233
::: moniker-end
3334

35+
1. Select the framework and then select **Install**.
36+
3437
## Update to the latest test adapters
3538

3639
Update to the latest stable test adapter to experience better test discovery and execution. For more information about updates to MSTest, NUnit, and xUnit test adapters, see the [Visual Studio blog](https://devblogs.microsoft.com/visualstudio/test-experience-improvements/).
3740

3841
### To update to the latest stable test adapter version
3942

40-
1. Open the NuGet Package Manager for your solution by navigating to **Tools** > **NuGet Package Manager** > **Manage NuGet Packages for Solution**.
43+
1. Open **NuGet Package Manager** for your solution by selecting **Tools** > **NuGet Package Manager** > **Manage NuGet Packages for Solution**.
4144

42-
2. Click on the **Updates** tab and search for MSTest, NUnit, or xUnit test adapters that are installed.
45+
1. Select the **Updates** tab and search for MSTest, NUnit, or xUnit test adapters that are installed.
4346

44-
3. Select each test adapter, and then select the button to update to a new version.
47+
1. Select the checkbox next to each test adapter you want to refresh, and then select **Update** to install the latest version of each adapter.
4548

4649
::: moniker range=">=vs-2022"
47-
![Upgrade Test Adapter](media/vs-2022/install-adapter-upgrade.png)
50+
51+
:::image type="content" source="media/vs-2022/install-adapter-upgrade.png" alt-text="Screenshot of Upgrade Test Adapter in Visual Studio 2022.":::
52+
53+
If the **Preview changes** dialog opens, confirm your selection, and select **Apply**. Accept any licensing changes, as needed.
54+
4855
::: moniker-end
4956
::: moniker range="vs-2019"
50-
![Upgrade Test Adapter](media/install-adapter-upgrade.png)
5157

52-
Choose the **Install** button.
58+
:::image type="content" source="media/install-adapter-upgrade.png" alt-text="Screenshot of Upgrade Test Adapter in Visual Studio 2019.":::
59+
60+
Select **Install**.
61+
5362
::: moniker-end
5463

5564
## Related content

0 commit comments

Comments
 (0)