|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | | -<!-- For more information, see https://docs.microsoft.com/en-us/visualstudio/test/configure-unit-tests-by-using-a-dot-runsettings-file?view=vs-2019 --> |
| 2 | +<!-- For more information, see https://docs.microsoft.com/en-us/visualstudio/test/configure-unit-tests-by-using-a-dot-runsettings-file?view=vs-2022 --> |
3 | 3 |
|
4 | 4 | <RunSettings> |
5 | | - <RunConfiguration> |
6 | | - <!-- See https://github.com/microsoft/vstest-docs/blob/master/docs/configure.md --> |
7 | | - <!-- 1. Test related settings --> |
8 | | - <!-- [x86] | x64: architecture of test host --> |
9 | | - <!--<TargetPlatform>x86</TargetPlatform>--> |
| 5 | + <RunConfiguration> |
| 6 | + <!-- See https://github.com/microsoft/vstest-docs/blob/master/docs/configure.md --> |
| 7 | + <!-- 1. Test related settings --> |
| 8 | + <!-- [x86] | x64: architecture of test host --> |
| 9 | + <!--<TargetPlatform>x86</TargetPlatform>--> |
10 | 10 |
|
11 | | - <!-- Framework35 | [Framework40] | Framework45 --> |
12 | | - <!--<TargetFrameworkVersion>Framework40</TargetFrameworkVersion>--> |
| 11 | + <!-- Framework35 | [Framework40] | Framework45 --> |
| 12 | + <!--<TargetFrameworkVersion>Framework40</TargetFrameworkVersion>--> |
13 | 13 |
|
14 | | - <!-- Path to Test Adapters --> |
15 | | - <!--<TestAdaptersPaths>%SystemDrive%\Temp\foo;%SystemDrive%\Temp\bar</TestAdaptersPaths>--> |
16 | | - <TreatTestAdapterErrorsAsWarnings>false</TreatTestAdapterErrorsAsWarnings> |
| 14 | + <!-- Path to Test Adapters --> |
| 15 | + <!--<TestAdaptersPaths>%SystemDrive%\Temp\foo;%SystemDrive%\Temp\bar</TestAdaptersPaths>--> |
| 16 | + <TreatTestAdapterErrorsAsWarnings>false</TreatTestAdapterErrorsAsWarnings> |
17 | 17 |
|
18 | | - <!-- Path relative to solution directory --> |
19 | | - <ResultsDirectory>.\TestResults</ResultsDirectory> |
| 18 | + <!-- Path relative to solution directory --> |
| 19 | + <ResultsDirectory>.\TestResults</ResultsDirectory> |
20 | 20 |
|
21 | | - <!-- 0 = As many processes as possible, limited by number of cores on machine, 1 = Sequential (1 process), 2-> Given number of processes up to limit by number of cores on machine--> |
22 | | - <MaxCpuCount>0</MaxCpuCount> |
| 21 | + <!-- 0 = As many processes as possible, limited by number of cores on machine, 1 = Sequential (1 process), 2-> Given number of processes up to limit by number of cores on machine--> |
| 22 | + <MaxCpuCount>0</MaxCpuCount> |
23 | 23 |
|
24 | | - <!-- TestSessionTimeout was introduced in Visual Studio 2017 version 15.5 --> |
25 | | - <!-- Specify timeout in milliseconds. A valid value should be >= 0. If 0, timeout will be infinity--> |
26 | | - <TestSessionTimeout>10000</TestSessionTimeout> |
| 24 | + <!-- TestSessionTimeout was introduced in Visual Studio 2017 version 15.5 --> |
| 25 | + <!-- Specify timeout in milliseconds. A valid value should be >= 0. If 0, timeout will be infinity--> |
| 26 | + <TestSessionTimeout>10000</TestSessionTimeout> |
27 | 27 |
|
28 | | - <!-- Specify a Boolean value, which defines the exit code when no tests are discovered.--> |
29 | | - <TreatNoTestsAsError>false</TreatNoTestsAsError> |
| 28 | + <!-- Specify a Boolean value, which defines the exit code when no tests are discovered.--> |
| 29 | + <TreatNoTestsAsError>false</TreatNoTestsAsError> |
30 | 30 |
|
31 | | - <!-- STA | MTA default is STA for .NET Full and MTA for .NET Core--> |
32 | | - <!--<ExecutionThreadApartmentState>STA</ExecutionThreadApartmentState>--> |
| 31 | + <!-- STA | MTA default is STA for .NET Full and MTA for .NET Core--> |
| 32 | + <!--<ExecutionThreadApartmentState>STA</ExecutionThreadApartmentState>--> |
33 | 33 |
|
34 | | - <!-- Disables in-assembly parallel execution, applies to both MSTest and NUnit --> |
35 | | - <DisableParallelization>false</DisableParallelization> |
36 | | - <DisableAppDomain>false</DisableAppDomain> |
37 | | - <CollectSourceInformation>true</CollectSourceInformation> |
| 34 | + <!-- Disables in-assembly parallel execution, applies to both MSTest and NUnit --> |
| 35 | + <DisableParallelization>false</DisableParallelization> |
| 36 | + <DisableAppDomain>false</DisableAppDomain> |
| 37 | + <CollectSourceInformation>true</CollectSourceInformation> |
38 | 38 |
|
39 | | - <!-- Runner related configuration --> |
40 | | - <BatchSize>10</BatchSize> |
| 39 | + <!-- Runner related configuration --> |
| 40 | + <BatchSize>10</BatchSize> |
41 | 41 |
|
42 | | - </RunConfiguration> |
| 42 | + </RunConfiguration> |
43 | 43 |
|
44 | | - <!-- <DataCollectionRunSettings> |
| 44 | + <!-- <DataCollectionRunSettings> |
45 | 45 | <DataCollectors> --> |
46 | | - <!-- This option can help you isolate a problematic test that causes a test host crash. Running the collector creates an output file (Sequence.xml) in TestResults, which captures the order of execution of the test before the crash. --> |
47 | | - <!-- <DataCollector friendlyName="blame" enabled="True"> |
| 46 | + <!-- This option can help you isolate a problematic test that causes a test host crash. Running the collector creates an output file (Sequence.xml) in TestResults, which captures the order of execution of the test before the crash. --> |
| 47 | + <!-- See https://docs.microsoft.com/en-us/visualstudio/test/configure-unit-tests-by-using-a-dot-runsettings-file?view=vs-2022#blame-data-collector--> |
| 48 | + <!-- <DataCollector friendlyName="blame" enabled="True"> |
48 | 49 | </DataCollectors> --> |
49 | | -<!-- </DataCollectionRunSettings> --> |
| 50 | + <!-- </DataCollectionRunSettings> --> |
50 | 51 |
|
51 | | - <!-- |
| 52 | + <!-- |
52 | 53 | <TestRunParameters> |
53 | 54 | <Parameter name="webAppUrl" value="http://localhost" /> |
54 | 55 | <Parameter name="webAppUserName" value="Admin" /> |
55 | 56 | </TestRunParameters> --> |
56 | 57 |
|
57 | | - <!-- Section for loggers, see https://docs.microsoft.com/en-us/visualstudio/test/configure-unit-tests-by-using-a-dot-runsettings-file?view=vs-2019#loggerrunsettings-element |
| 58 | + <!-- Section for loggers, see https://docs.microsoft.com/en-us/visualstudio/test/configure-unit-tests-by-using-a-dot-runsettings-file?view=vs-2022#loggerrunsettings-element |
58 | 59 | <LoggerRunSettings> |
59 | 60 | <Loggers> |
60 | 61 | <Logger friendlyName="console" enabled="True"> |
|
77 | 78 | --> |
78 | 79 |
|
79 | 80 |
|
80 | | - <!-- Adapter Specific sections --> |
| 81 | + <!-- Adapter Specific sections --> |
81 | 82 |
|
82 | | - <!-- MSTest adapter --> |
83 | | - <MSTest> |
84 | | - <MapInconclusiveToFailed>false</MapInconclusiveToFailed> |
85 | | - <CaptureTraceOutput>true</CaptureTraceOutput> |
86 | | - <DeleteDeploymentDirectoryAfterTestRunIsComplete>true</DeleteDeploymentDirectoryAfterTestRunIsComplete> |
87 | | - <DeploymentEnabled>true</DeploymentEnabled> |
88 | | - <DeployTestSourceDependencies>true</DeployTestSourceDependencies> |
89 | | - <MapNotRunnableToFailed>false</MapNotRunnableToFailed> |
90 | | - <EnableBaseClassTestMethodsFromOtherAssemblies>false</EnableBaseClassTestMethodsFromOtherAssemblies> |
91 | | - <!-- <TestTimeout>5000</TestTimeout> --> |
| 83 | + <!-- MSTest adapter --> |
| 84 | + <MSTest> |
| 85 | + <MapInconclusiveToFailed>false</MapInconclusiveToFailed> |
| 86 | + <CaptureTraceOutput>true</CaptureTraceOutput> |
| 87 | + <DeleteDeploymentDirectoryAfterTestRunIsComplete>true</DeleteDeploymentDirectoryAfterTestRunIsComplete> |
| 88 | + <DeploymentEnabled>true</DeploymentEnabled> |
| 89 | + <DeployTestSourceDependencies>true</DeployTestSourceDependencies> |
| 90 | + <MapNotRunnableToFailed>false</MapNotRunnableToFailed> |
| 91 | + <EnableBaseClassTestMethodsFromOtherAssemblies>false</EnableBaseClassTestMethodsFromOtherAssemblies> |
| 92 | + <!-- <TestTimeout>5000</TestTimeout> --> |
92 | 93 |
|
93 | | - <!-- Uncomment and update path for assembly resolution --> |
94 | | - <!-- <AssemblyResolution> |
| 94 | + <!-- Uncomment and update path for assembly resolution --> |
| 95 | + <!-- <AssemblyResolution> |
95 | 96 | <Directory path="D:\myfolder\bin\" includeSubDirectories="false"/> |
96 | 97 | </AssemblyResolution> --> |
97 | | - <ForcedLegacyMode>false</ForcedLegacyMode> |
98 | | - <!-- |
| 98 | + <ForcedLegacyMode>false</ForcedLegacyMode> |
| 99 | + <!-- |
99 | 100 | <SettingsFile>a .testsettings file (require ForcedLegacyMode true) </SettingsFile> |
100 | 101 | --> |
101 | | - </MSTest> |
102 | | - |
103 | | - <!-- NUnit3 adapter, uncomment sections to set as appropriate, numeric, booleans, enums have their default values below, except RandomSeed --> |
104 | | - <!-- For documentation, see https://docs.nunit.org/articles/vs-test-adapter/Tips-And-Tricks.html --> |
105 | | - <NUnit> |
106 | | - <!--<BasePath>D:\Dev\NUnit\nunit3-vs-adapter\demo\NUnitTestDemo\bin\Release</BasePath>--> |
107 | | - <!--<PrivateBinPath>extras;more.extras</PrivateBinPath>--> |
108 | | - <DefaultTimeout>0</DefaultTimeout> |
109 | | - <!--<WorkDirectory>work</WorkDirectory>--> |
110 | | - <InternalTraceLevel>Off</InternalTraceLevel> |
111 | | - <!--<RandomSeed>1234567</RandomSeed>--> |
112 | | - <NumberOfTestWorkers>-1</NumberOfTestWorkers> |
113 | | - <Verbosity>0</Verbosity> |
114 | | - <!--<UseVsKeepEngineRunning>false</UseVsKeepEngineRunning>--> |
115 | | - <!--<ShadowCopyFiles>false</ShadowCopyFiles>--> |
116 | | - <!--<DefaultTestNamePattern>{m}{a}</DefaultTestNamePattern>--> |
117 | | - <!--<DomainUsage>Single</DomainUsage>--> |
118 | | - <DumpXmlTestDiscovery>false</DumpXmlTestDiscovery> |
119 | | - <DumpXmlTestResults>false</DumpXmlTestResults> |
120 | | - <ShowInternalProperties>false</ShowInternalProperties> |
121 | | - <!--<TestOutputXml>TestOutputXml</TestOutputXml>--> |
122 | | - <!--<Where></Where>--> |
123 | | - <!-- NUnit filter expression, see https://docs.nunit.org/articles/nunit/running-tests/Test-Selection-Language.html --> |
124 | | - <ConsoleOut>1</ConsoleOut> |
125 | | - <UseTestNameInConsoleOutput>true</UseTestNameInConsoleOutput> |
126 | | - <StopOnError>false</StopOnError> |
127 | | - <SkipNonTestAssemblies>false</SkipNonTestAssemblies> |
128 | | - <MapWarningTo>Skipped</MapWarningTo> |
129 | | - <!--Passed, Failed or Skipped--> |
130 | | - <DisplayName>Name</DisplayName> |
131 | | - <!--Name, FullName or FullNameSep--> |
132 | | - <FullnameSeparator>:</FullnameSeparator> |
133 | | - <DiscoveryMethod>Current</DiscoveryMethod> |
134 | | - <!--Legacy or Current--> |
135 | | - <AssemblySelectLimit>2000</AssemblySelectLimit> |
136 | | - </NUnit> |
| 102 | + </MSTest> |
| 103 | + |
| 104 | + <!-- NUnit3 adapter, uncomment sections to set as appropriate, numeric, booleans, enums have their default values below, except RandomSeed --> |
| 105 | + <!-- For documentation, see https://docs.nunit.org/articles/vs-test-adapter/Tips-And-Tricks.html --> |
| 106 | + <NUnit> |
| 107 | + <!--<BasePath>D:\Dev\NUnit\nunit3-vs-adapter\demo\NUnitTestDemo\bin\Release</BasePath>--> |
| 108 | + <!--<PrivateBinPath>extras;more.extras</PrivateBinPath>--> |
| 109 | + <DefaultTimeout>0</DefaultTimeout> |
| 110 | + <!--<WorkDirectory>work</WorkDirectory>--> |
| 111 | + <InternalTraceLevel>Off</InternalTraceLevel> |
| 112 | + <!--<RandomSeed>1234567</RandomSeed>--> |
| 113 | + <NumberOfTestWorkers>-1</NumberOfTestWorkers> |
| 114 | + <Verbosity>0</Verbosity> |
| 115 | + <!--<UseVsKeepEngineRunning>false</UseVsKeepEngineRunning>--> |
| 116 | + <!--<ShadowCopyFiles>false</ShadowCopyFiles>--> |
| 117 | + <!--<DefaultTestNamePattern>{m}{a}</DefaultTestNamePattern>--> |
| 118 | + <!--<DomainUsage>Single</DomainUsage>--> |
| 119 | + <DumpXmlTestDiscovery>false</DumpXmlTestDiscovery> |
| 120 | + <DumpXmlTestResults>false</DumpXmlTestResults> |
| 121 | + <ShowInternalProperties>false</ShowInternalProperties> |
| 122 | + <!--<TestOutputXml>TestOutputXml</TestOutputXml>--> |
| 123 | + <!--<Where></Where>--> |
| 124 | + <!-- NUnit filter expression, see https://docs.nunit.org/articles/nunit/running-tests/Test-Selection-Language.html --> |
| 125 | + <ConsoleOut>1</ConsoleOut> |
| 126 | + <UseTestNameInConsoleOutput>true</UseTestNameInConsoleOutput> |
| 127 | + <StopOnError>false</StopOnError> |
| 128 | + <SkipNonTestAssemblies>false</SkipNonTestAssemblies> |
| 129 | + <MapWarningTo>Skipped</MapWarningTo> |
| 130 | + <!--Passed, Failed or Skipped--> |
| 131 | + <DisplayName>Name</DisplayName> |
| 132 | + <!--Name, FullName or FullNameSep--> |
| 133 | + <FullnameSeparator>:</FullnameSeparator> |
| 134 | + <DiscoveryMethod>Current</DiscoveryMethod> |
| 135 | + <!--Legacy or Current--> |
| 136 | + <AssemblySelectLimit>2000</AssemblySelectLimit> |
| 137 | + <NewOutputXmlFileForEachRun>false</NewOutputXmlFileForEachRun> |
| 138 | + <IncludeStackTraceForSuites>true</IncludeStackTraceForSuites> |
| 139 | + <ExplicitMode>Strict</ExplicitMode> |
| 140 | + <SkipExecutionWhenNoTests>false</SkipExecutionWhenNoTests> |
| 141 | + |
| 142 | + </NUnit> |
137 | 143 | </RunSettings> |
138 | 144 |
|
0 commit comments