-
Notifications
You must be signed in to change notification settings - Fork 328
Tests | Manual Test "Set" Trait #4071
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
4125028
ec3c62d
585335d
892b3de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -223,13 +223,13 @@ | |
| TestSet | ||
| Applies to: TestMdsManual target | ||
| Description: Used to select a set of tests to run from the MDS manual tests project. If not | ||
| specified, all tests will be executed. | ||
| specified, all manual tests will be executed. In the manual test target, this | ||
| value is converted into a Set trait filter and combined with any TestFilters. | ||
| Default value: [blank] | ||
| Allowed values: ([1][2][3][AE]) | ||
| Examples: "1", "12", "AE", "12AE" | ||
| --> | ||
| <TestSet Condition="'$(TestSet)' == ''" /> | ||
| <TestSetArgument Condition="'$(TestSet)' != ''">-p:TestSet="$(TestSet)"</TestSetArgument> | ||
| </PropertyGroup> | ||
|
|
||
| <!-- ================================================================= --> | ||
|
|
@@ -466,14 +466,24 @@ | |
| <LogFilePrefix Condition="'$(TestFramework)' != ''">$(LogFilePrefix)-$(TestFramework)</LogFilePrefix> | ||
| <LogFilePrefix Condition="'$(TestSet)' != ''">$(LogFilePrefix)-$(TestSet)</LogFilePrefix> | ||
|
|
||
| <!-- Join test sets together, if any were selected --> | ||
| <NormalizedTestSet>$(TestSet.ToUpper())</NormalizedTestSet> | ||
| <TestSetFilter Condition="$(NormalizedTestSet.Contains('1'))">Set=1</TestSetFilter> | ||
| <TestSetFilter Condition="$(NormalizedTestSet.Contains('2'))">$(TestSetFilter)|Set=2</TestSetFilter> | ||
| <TestSetFilter Condition="$(NormalizedTestSet.Contains('3'))">$(TestSetFilter)|Set=3</TestSetFilter> | ||
| <TestSetFilter Condition="$(TestSet.ToUpper().Contains('AE'))">$(TestSetFilter)|Set=AE</TestSetFilter> | ||
| <TestSetFilter Condition="$(TestSetFilter) != ''">($(TestSetFilter.Trim('|')))</TestSetFilter> | ||
|
|
||
| <!-- Combine existing filters with test set filters --> | ||
| <ManualTestFilters>$(TestFilters)&$(TestSetFilter)</ManualTestFilters> | ||
| <ManualTestFilters>$(ManualTestFilters.Trim('&'))</ManualTestFilters> | ||
|
|
||
| <DotnetCommand> | ||
| "$(DotnetPath)dotnet" test "$(MdsManualTestProjectPath)" | ||
| -p:Configuration=$(Configuration) | ||
| $(TestBlameArgument) | ||
| $(TestCodeCoverageArgument) | ||
| $(TestFiltersArgument) | ||
| $(TestFrameworkArgument) | ||
| $(TestSetArgument) | ||
| --filter "$(ManualTestFilters)" | ||
| --results-directory "$(TestResultsFolderPath)" | ||
|
Comment on lines
+477
to
487
|
||
| --logger:"trx;LogFilePrefix=$(LogFilePrefix)" | ||
|
|
||
|
|
@@ -487,7 +497,7 @@ | |
| <DotnetCommand>$([System.Text.RegularExpressions.Regex]::Replace($(DotnetCommand), "\s+", " "))</DotnetCommand> | ||
| </PropertyGroup> | ||
| <Message Text=">>> Running manual tests for MDS via command: $(DotnetCommand)" /> | ||
| <Exec ConsoleToMsBuild="true" Command="$(DotnetCommand)" /> | ||
|
Check failure on line 500 in build2.proj
|
||
| </Target> | ||
|
|
||
| <!-- TestMdsUnit: Runs unit tests for MDS --> | ||
|
|
@@ -515,6 +525,6 @@ | |
| <DotnetCommand>$([System.Text.RegularExpressions.Regex]::Replace($(DotnetCommand), "\s+", " "))</DotnetCommand> | ||
| </PropertyGroup> | ||
| <Message Text=">>> Running unit tests for MDS via command: $(DotnetCommand)" /> | ||
| <Exec ConsoleToMsBuild="true" Command="$(DotnetCommand)" /> | ||
|
Check failure on line 528 in build2.proj
|
||
| </Target> | ||
| </Project> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TestMdsManualno longer passes$(TestFrameworkArgument), so-p:TestFramework=...will have no effect for manual tests (unlike functional/unit targets). This likely causes the manual test run to execute all TFMs by default and breaks existing invocations that relied on selecting a single framework. Add$(TestFrameworkArgument)back to the manual testdotnet testcommand (or document/rename the parameter if this behavior change is intentional).