Fixing dotnet test help text (#5032)
Renaming --test-case-filter to just --filter to make it easier to use. Placing more examples and more clarity for the --filter command. Fixes #5021
This commit is contained in:
parent
e491fbdcd0
commit
7dadb95d3c
2 changed files with 6 additions and 3 deletions
|
@ -20,8 +20,11 @@
|
|||
|
||||
public const string CmdTestCaseFilterDescription = @"Run tests that match the given expression.
|
||||
Examples:
|
||||
--test-case-filter:""Priority = 1""
|
||||
--test-case-filter: ""(FullyQualifiedName~Nightly | Name = MyTestMethod)""";
|
||||
Run tests with priority set to 1: --filter ""Priority = 1""
|
||||
Run a test with the specified full name: --filter ""FullyQualifiedName=Namespace.ClassName.MethodName""
|
||||
Run tests that contain the specified name: --filter ""FullyQualifiedName~Namespace.Class""
|
||||
More info on filtering support: https://aka.ms/vstest-filtering
|
||||
";
|
||||
|
||||
public const string CmdTestAdapterPathDescription = @"Use custom adapters from the given path in the test run.
|
||||
Example: --test-adapter-path:<pathToCustomAdapters>";
|
||||
|
|
|
@ -44,7 +44,7 @@ namespace Microsoft.DotNet.Tools.Test
|
|||
CommandOptionType.NoValue);
|
||||
|
||||
var testCaseFilterOption = cmd.Option(
|
||||
$"--test-case-filter <{LocalizableStrings.CmdTestCaseFilterExpression}>",
|
||||
$"--filter <{LocalizableStrings.CmdTestCaseFilterExpression}>",
|
||||
LocalizableStrings.CmdTestCaseFilterDescription,
|
||||
CommandOptionType.SingleValue);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue