Skip to content

Commit 951e086

Browse files
committed
edit pass: test-explorer-articles
1 parent 018a452 commit 951e086

File tree

3 files changed

+22
-26
lines changed

3 files changed

+22
-26
lines changed

docs/test/debug-unit-tests-with-test-explorer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ You can use Test Explorer to start a debugging session for your tests. Stepping
1818
> [!NOTE]
1919
> Because test methods can run in any order, set breakpoints in all the test methods that you want to debug.
2020
21-
2. In Test Explorer, select the test methods, right-click on the pane, and then select **Debug**.
21+
2. In Test Explorer, select the test methods, right-click somewhere on the pane, and then select **Debug**.
2222

2323
::: moniker range=">=vs-2022"
2424
![Screenshot that shows test execution details.](../test/media/vs-2022/test-explorer-debug.png)

docs/test/run-unit-tests-with-test-explorer.md

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Choose one of these options for running tests:
5555

5656
- To run all the tests in a default group, select the **Run** icon and then select the group on the menu.
5757

58-
- To run individual tests, select one or more tests, right-click on the pane, and then select **Run Selected Tests** (or select Ctrl+R, T).
58+
- To run individual tests, select one or more tests, right-click somewhere on the pane, and then select **Run Selected Tests** (or select Ctrl+R, T).
5959

6060
If individual tests have no dependencies that prevent them from being run in any order, turn on parallel test execution on the settings menu of the toolbar. This action can reduce the time for running all the tests.
6161

@@ -98,13 +98,13 @@ If the test fails, the details pane also displays:
9898

9999
### View the source code of a test method
100100

101-
To display the source code for a test method in the Visual Studio editor, select the test, right-click on the pane, and then select **Open Test** (or select the F12 key).
101+
To display the source code for a test method in the Visual Studio editor, right-click the test, and then select **Open Test** (or select the F12 key).
102102

103103
## Group and filter the test list
104104

105105
In Test Explorer, you can group your tests into predefined categories. Most unit test frameworks that run in Test Explorer let you define your own categories and category/value pairs to group your tests. You can also filter the list of tests by matching strings against test properties.
106106

107-
### Group tests in the test list
107+
### Grouping tests in the test list
108108

109109
::: moniker range="vs-2019"
110110
Test Explorer lets you group your tests into a hierarchy. The default hierarchy grouping is **Project**, **Namespace**, and then **Class**. To change the way that tests are organized, select the **Group By** button ![Test Explorer group button](../test/media/ute_groupby_btn.png) and then select a new grouping criterion.
@@ -166,7 +166,7 @@ You can create and save a list of tests that you want to run or view as a group.
166166
To create a playlist:
167167

168168
1. Choose one or more tests in Test Explorer.
169-
1. Right-click on the pane, point to **Add to Playlist**, and then select **New Playlist**.
169+
1. Right-click somewhere on the pane, point to **Add to Playlist**, and then select **New Playlist**.
170170

171171
![Screenshot that shows selections for creating a playlist.](../test/media/vs-2019/test-explorer-playlist-16-2.png)
172172

@@ -194,7 +194,7 @@ You can learn more about the rules by saving the playlist via the **Save** butto
194194

195195
![Screenshot that shows the contents of a playlist XML file.](../test/media/vs-2019/test-explorer-playlist-xml-file.png)
196196

197-
If you want to make a playlist for traits, use the following format for the Microsoft Testing Framework (MSTest):
197+
If you want to make a playlist for traits, use the following format for the MSTest framework:
198198

199199
```xml
200200
<Playlist Version="2.0">
@@ -226,7 +226,7 @@ You can create and save a list of tests that you want to run or view as a group.
226226
To create a playlist:
227227

228228
1. Choose one or more tests in Test Explorer.
229-
1. Right-click on the pane, point to **Add to Playlist**, and then select **New Playlist**.
229+
1. Right-click somewhere on the pane, point to **Add to Playlist**, and then select **New Playlist**.
230230

231231
![Screenshot that shows selections for creating a playlist.](../test/media/vs-2022/test-explorer-playlist-17-0.png)
232232

@@ -254,7 +254,7 @@ You can learn more about the rules by saving the playlist via the **Save** butto
254254

255255
![Screenshot that shows the contents of a playlist XML file.](../test/media/vs-2022/test-explorer-playlist-xml-file.png)
256256

257-
If you want to make a playlist for traits, use the following format for the Microsoft Testing Framework (MSTest):
257+
If you want to make a playlist for traits, use the following format for the MSTest framework:
258258

259259
```xml
260260
<Playlist Version="2.0">
@@ -283,12 +283,10 @@ Use the following format for the xUnit framework. Make sure there's a space betw
283283
::: moniker range="vs-2019"
284284
### Test Explorer columns
285285

286-
[Groups](#test-explorer-groups) are also available as columns in Test Explorer, along with **Trait**, **Stack Trace**, **Error Message**, and **Fully Qualified Name**. Most columns are not visible by default. You can customize which columns appear and their order.
286+
[Groups](#test-explorer-groups) are also available as columns in Test Explorer, along with **Traits**, **Stack Trace**, **Error Message**, and **Fully Qualified Name**. Most columns are not visible by default. You can customize which columns appear.
287287

288288
![Screenshot of Visual Studio Test Explorer that shows a menu with Columns selected and a submenu with Duration, Traits, and Error Message selected.](../test/media/vs-2019/test-explorer-columns-16-2.png)
289289

290-
### Filter, sort, and rearrange test columns
291-
292290
Columns can be filtered, rearranged, and sorted:
293291

294292
- To filter to specific traits, select the filter icon at the top of the **Traits** column.
@@ -305,12 +303,10 @@ Columns can be filtered, rearranged, and sorted:
305303
::: moniker range=">=vs-2022"
306304
### Test Explorer columns
307305

308-
[Groups](#test-explorer-groups) are also available as columns in Test Explorer, along with **Trait**, **Stack Trace**, **Error Message**, and **Fully Qualified Name**. Most columns are not visible by default. You can customize which columns appear and their order.
306+
[Groups](#test-explorer-groups) are also available as columns in Test Explorer, along with **Traits**, **Stack Trace**, **Error Message**, and **Fully Qualified Name**. Most columns are not visible by default. You can customize which columns appear.
309307

310308
![Screenshot of Visual Studio Test Explorer that shows a menu with Columns selected and a submenu with Duration, Traits, and Error Message selected.](../test/media/vs-2022/test-explorer-columns-17-0.png)
311309

312-
### Filter, sort, and rearrange test columns
313-
314310
Columns can be filtered, rearranged, and sorted:
315311

316312
- To filter to specific traits, select the filter icon at the top of the **Traits** column.
@@ -328,7 +324,7 @@ Columns can be filtered, rearranged, and sorted:
328324

329325
You can also use Test Explorer search filters to limit the test methods in your projects that you view and run.
330326

331-
When you type a string in the **Test Explorer** search box and select **Enter**, the test list is filtered to display only those tests whose fully qualified names contain the string.
327+
When you type a string in the **Test Explorer** search box and select the Enter key, the test list is filtered to display only tests whose fully qualified names contain the string.
332328

333329
To filter by a different criterion:
334330

@@ -347,7 +343,7 @@ To filter by a different criterion:
347343
::: moniker-end
348344

349345
> [!NOTE]
350-
> Searches are case insensitive and match the specified string to any part of the criterion value.
346+
> Searches are case-insensitive and match the specified string to any part of the criterion value.
351347
352348
|Qualifier|Description|
353349
|-|-----------------|
@@ -383,10 +379,10 @@ For more information, see [Use code coverage to determine how much code is being
383379

384380
You can run tests from Test Explorer by either:
385381

386-
- Right-clicking in the code editor on a test and then selecting **Run test**
382+
- Right-clicking a test in the code editor and then selecting **Run test**
387383
- Using the default [Test Explorer shortcuts](../ide/default-keyboard-shortcuts-in-visual-studio.md#bkmk_testexplorerGLOBAL) in Visual Studio
388384

389-
Some of the shortcuts are context based. They run, [debug](../test/debug-unit-tests-with-test-explorer.md), or [profile](../test/debug-unit-tests-with-test-explorer.md#diagnose-performance-problems-with-a-test-method) tests based on where your cursor is in the code editor. If your cursor is inside a test method, then that test method runs. If your cursor is at the class level, then all the tests in that class run. The same behavior is true for the namespace level.
385+
Some of the shortcuts are context-based. They run, [debug](../test/debug-unit-tests-with-test-explorer.md), or [profile](../test/debug-unit-tests-with-test-explorer.md#diagnose-performance-problems-with-a-test-method) tests based on where your cursor is in the code editor. If your cursor is inside a test method, then that test method runs. If your cursor is at the class level, then all the tests in that class run. The same behavior is true for the namespace level.
390386

391387
|Frequent commands| Keyboard shortcuts|
392388
|-|------------------------|
@@ -409,7 +405,7 @@ You can set up these sounds in the default Windows 11 **Sound** dialog. This fea
409405

410406
1. Open the default Windows 11 **Sound** dialog.
411407
2. Go to the **Sounds** tab.
412-
3. Find the **Microsoft Visual Studio** category. Choose the **Test Run Succeeded** or **Test Run Failed** preset sounds, or browse to your own audio file.
408+
3. Find the **Microsoft Visual Studio** category. Choose the **Test Run Succeeded** or **Test Run Failed** preset sound, or browse to your own audio file.
413409

414410
![Screenshot of the Windows 11 Sound dialog.](../test/media/default-windows-11-sound-dialog.png)
415411

docs/test/test-explorer-faq.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ms.subservice: test-tools
1919

2020
## Dynamic test discovery
2121

22-
**Test Explorer is not discovering my tests that are dynamically defined (for example, theories, custom adapters, custom traits, and #ifdef statements). How can I discover these tests?**
22+
**Test Explorer is not discovering my tests that are dynamically defined (for example, theories, custom adapters, custom traits, and #ifdef statements). How can I make sure it discovers these tests?**
2323

2424
Build your project to run assembly-based discovery.
2525

@@ -71,11 +71,11 @@ The hierarchy view sorts tests alphabetically, not by outcome. Previous group-by
7171

7272
**In the hierarchy view, there are passed, failed, skipped, and not-run icons next to parent-node groupings. What do these icons mean?**
7373

74-
The icons next to the **Project**, **Namespace**, and **Class** groupings show the state of the tests within that grouping. See the following table.
74+
The icons next to the **Project**, **Namespace**, and **Class** groupings show the state of the tests within each grouping. See the following table.
7575

7676
![Table of Test Explorer hierarchy icons.](media/testex-hierarchy-icons.png)
7777

78-
## Search by file path
78+
## Searches by file path
7979

8080
**Why is there is no longer a file path filter in the Test Explorer search box?**
8181

@@ -85,17 +85,17 @@ The file path filter in the Test Explorer search box was removed in Visual Studi
8585

8686
**Some test-related APIs are no longer present in Visual Studio 2019. What changed?**
8787

88-
In Visual Studio 2019, some test window APIs that were previously marked public but were never officially documented were removed. They were marked as deprecated in Visual Studio 2017 to give extension maintainers an early warning. To our knowledge, very few extensions found these APIs and took a dependency on them. They include `IGroupByProvider`, `IGroupByProvider<T>`, `KeyComparer`, `ISearchFilter`, `ISearchFilterToken`, `ISearchToken`, and `SearchFilterTokenType`.
88+
In Visual Studio 2019, some test window APIs that were previously marked public but were never officially documented will be removed. They were marked as deprecated in Visual Studio 2017 to give extension maintainers an early warning. To our knowledge, very few extensions found these APIs and took a dependency on them. They include `IGroupByProvider`, `IGroupByProvider<T>`, `KeyComparer`, `ISearchFilter`, `ISearchFilterToken`, `ISearchToken`, and `SearchFilterTokenType`.
8989

9090
If this change affects your extension, let us know by filing a bug on [Developer Community](https://aka.ms/feedback/suggest?space=8).
9191

9292
## Test adapter NuGet reference
9393

9494
**Why don't my tests run in Visual Studio 2017 version 15.8, even though they're discovered?**
9595

96-
All test projects must include their .NET test adapter NuGet reference in their .csproj file. If they don't, the following test output appears on the project if discovery by a test adapter extension starts after a build, or if the user tries to run the selected tests:
96+
All test projects must include their .NET test adapter NuGet reference in their .csproj file. If they don't, the following test output appears on the project if discovery by a test adapter extension starts after a build, or if you try to run the selected tests:
9797

98-
**Test project {} does not reference any .NET NuGet adapter. Test discovery or execution might not work for this project. It is recommended to reference NuGet test adapters in each .NET test project in the solution.**
98+
> **Test project {} does not reference any .NET NuGet adapter. Test discovery or execution might not work for this project. It is recommended to reference NuGet test adapters in each .NET test project in the solution.**
9999
100100
Instead of using test adapter extensions, projects are required to use test adapter NuGet packages. This requirement greatly improves performance and causes fewer problems with continuous integration. Read more about the deprecation of .NET test adapter extensions in the [release notes](/visualstudio/releasenotes/vs2017-relnotes-v15.8#testadapterextension).
101101

@@ -105,7 +105,7 @@ Instead of using test adapter extensions, projects are required to use test adap
105105

106106
Recent UWP test projects specify a build property that allows better performance for identifying test apps. If you have a UWP test project that was initialized before Visual Studio version 15.7, you might see this error in **Output** > **Tests**:
107107

108-
**System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: The following TestContainer was not found {} at Microsoft.VisualStudio.TestWindow.Controller.TestContainerProvider \<GetTestContainerAsync>d__61.MoveNext()**
108+
> **System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: The following TestContainer was not found {} at Microsoft.VisualStudio.TestWindow.Controller.TestContainerProvider \<GetTestContainerAsync>d__61.MoveNext()**
109109
110110
To fix this error:
111111

0 commit comments

Comments
 (0)