Skip to content

Commit 9a3bd1f

Browse files
joacarmairaw
andauthored
Note to escape exclamation mark in *nix (#15972)
* Note to escape exclamation mark in *nix * Apply suggestions from code review Co-Authored-By: Maira Wenzel <mairaw@microsoft.com> * Namespace is one word Co-Authored-By: Maira Wenzel <mairaw@microsoft.com> Co-authored-by: Maira Wenzel <mairaw@microsoft.com>
1 parent 4fb1071 commit 9a3bd1f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/core/testing/selective-unit-tests.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ ms.date: 03/22/2017
99

1010
With the `dotnet test` command in .NET Core, you can use a filter expression to run selective tests. This article demonstrates how to filter which test are run. The following examples use `dotnet test`. If you're using `vstest.console.exe`, replace `--filter` with `--testcasefilter:`.
1111

12+
> [!NOTE]
13+
> Using filters that include exclamation mark (!) on `*nix` requires escaping since `!` is reserved. For example, this filter
14+
> skips all tests if the namespace contains IntegrationTests: `dotnet test --filter FullyQualifiedName\!~IntegrationTests`.
15+
> Note the backslash that precedes the exclamation mark.
16+
1217
## MSTest
1318

1419
```csharp

0 commit comments

Comments
 (0)