forked from evolutional/Chamois
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Test.runsettings
154 lines (138 loc) · 8.94 KB
/
Test.runsettings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<?xml version="1.0" encoding="utf-8"?>
<!-- File name extension must be .runsettings -->
<!-- For more information, see https://docs.microsoft.com/en-us/visualstudio/test/configure-unit-tests-by-using-a-dot-runsettings-file?view=vs-2019 -->
<RunSettings>
<!-- Configurations that affect the Test Framework -->
<RunConfiguration>
<!-- The directory where test results are placed. The path is relative to the directory that contains .runsettings file. -->
<!--<ResultsDirectory>./TestResults</ResultsDirectory>-->
<!-- [x86] | x64
- You can also change it from menu Test, Test Settings, Default Processor Architecture
<TargetPlatform>x64</TargetPlatform> -->
<!--If you omit the TargetFrameworkVersion element from the .runsettings file,
the platform automatically determines the framework version based on the built binaries.-->
<!--<TargetFrameworkVersion>FrameworkCore10</TargetFrameworkVersion>-->
<!--https://github.com/microsoft/vstest/issues/135-->
<TestAdaptersPaths>.\Catch2\TestAdapterCatch2</TestAdaptersPaths>
<TreatTestAdapterErrorsAsWarnings>false</TreatTestAdapterErrorsAsWarnings>
<CollectSourceInformation>true</CollectSourceInformation>
<!-- 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-->
<MaxCpuCount>1</MaxCpuCount>
<TestSessionTimeout>14400000</TestSessionTimeout>
</RunConfiguration>
<DataCollectionRunSettings>
<DataCollectors>
<DataCollector friendlyName="Code Coverage"
uri="datacollector://Microsoft/CodeCoverage/2.0"
assemblyQualifiedName="Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector, Microsoft.VisualStudio.TraceCollector, Culture=neutral">
<Configuration>
<Format>Cobertura</Format>
<CodeCoverage>
<AllowLowIntegrityProcesses>True</AllowLowIntegrityProcesses>
<CollectFromChildProcesses>True</CollectFromChildProcesses>
<!-- Match assembly file paths: -->
<ModulePaths>
<Exclude>
<ModulePath>Microsoft.*</ModulePath>
<ModulePath>Roslyn.*</ModulePath>
<ModulePath>System.*</ModulePath>
<ModulePath>NUnit.*</ModulePath>
<ModulePath>google*</ModulePath>
</Exclude>
</ModulePaths>
<!-- Match attributes on any code element: -->
<Attributes>
<Exclude>
<!--Don’t forget "Attribute" at the end of the name-->
<Attribute>^System.Diagnostics.DebuggerHiddenAttribute$</Attribute>
<Attribute>^System.Diagnostics.DebuggerNonUserCodeAttribute$</Attribute>
<Attribute>^System.Runtime.CompilerServices.CompilerGeneratedAttribute$</Attribute>
<Attribute>^System.CodeDom.Compiler.GeneratedCodeAttribute$</Attribute>
<Attribute>^System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute$</Attribute>
<Attribute>^NUnit.Framework.TestFixtureAttribute$</Attribute>
<Attribute>^Xunit.FactAttribute$</Attribute>
<Attribute>^Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute$</Attribute>
</Exclude>
</Attributes>
<!-- Match the path of the source files in which each method is defined: -->
<Sources>
<!--<Include>
<Source>.*\\Prod\\.*</Source>
</Include>-->
<Exclude>
<Source>.*\\packages\\.*</Source>
<Source>.*\\*Test\\.*</Source>
<Source>.*\\Tests\\.*</Source>
<Source>.*\\ThirdParty\\.*</Source>
</Exclude>
</Sources>
<!-- Match the company name property in the assembly: -->
<CompanyNames>
<Exclude>
<CompanyName>.*microsoft.*</CompanyName>
</Exclude>
</CompanyNames>
<!-- Match the public key token of a signed assembly: -->
<!--<PublicKeyTokens>
-->
<!-- Exclude Visual Studio extensions: -->
<!--
<Exclude>
<PublicKeyToken>^B77A5C561934E089$</PublicKeyToken>
<PublicKeyToken>^B03F5F7F11D50A3A$</PublicKeyToken>
<PublicKeyToken>^31BF3856AD364E35$</PublicKeyToken>
<PublicKeyToken>^89845DCD8080CC91$</PublicKeyToken>
<PublicKeyToken>^71E9BCE111E9429C$</PublicKeyToken>
<PublicKeyToken>^8F50407C4E9E73B6$</PublicKeyToken>
<PublicKeyToken>^E361AF139669C375$</PublicKeyToken>
</Exclude>
</PublicKeyTokens>-->
<UseVerifiableInstrumentation>False</UseVerifiableInstrumentation>
<!-- We recommend you do not change the following values: -->
<!--<UseVerifiableInstrumentation>True</UseVerifiableInstrumentation>
<AllowLowIntegrityProcesses>True</AllowLowIntegrityProcesses>
<CollectFromChildProcesses>True</CollectFromChildProcesses>
<CollectAspDotNet>False</CollectAspDotNet>-->
<!-- When set to True, collects coverage information from child processes that are launched with low-level ACLs, for example, UWP apps. -->
<AllowLowIntegrityProcesses>True</AllowLowIntegrityProcesses>
<!-- When set to True, collects coverage information from child processes that are launched by test or production code. -->
<CollectFromChildProcesses>True</CollectFromChildProcesses>
<!-- When set to True, restarts the IIS process and collects coverage information from it. -->
<CollectAspDotNet>False</CollectAspDotNet>
<!-- When set to True, static native instrumentation will be enabled. -->
<EnableStaticNativeInstrumentation>True</EnableStaticNativeInstrumentation>
<!-- When set to True, dynamic native instrumentation will be enabled. -->
<EnableDynamicNativeInstrumentation>True</EnableDynamicNativeInstrumentation>
<!-- When set to True, instrumented binaries on disk are removed and original files are restored. -->
<EnableStaticNativeInstrumentationRestore>True</EnableStaticNativeInstrumentationRestore>
</CodeCoverage>
</Configuration>
</DataCollector>
</DataCollectors>
</DataCollectionRunSettings>
<!-- Adapter Specific sections
https://github.com/JohnnyHendriks/TestAdapter_Catch2/blob/main/Docs/Settings.md#messageformat
-->
<Catch2Adapter>
<CombinedTimeout>180000</CombinedTimeout>
<DebugBreak>off</DebugBreak>
<DiscoverCommandLine>--verbosity high --list-tests --reporter xml *</DiscoverCommandLine>
<DiscoverTimeout>60000</DiscoverTimeout><!-- Milliseconds -->
<Environment>
<MyCustomEnvSetting>Welcome</MyCustomEnvSetting>
<MyOtherCustomEnvSetting value="debug<0>"/>
</Environment>
<ExecutionMode>Combine</ExecutionMode>
<ExecutionModeForceSingleTagRgx>Slow</ExecutionModeForceSingleTagRgx>
<FilenameFilter>Catch2</FilenameFilter><!-- Regex filter -->
<IncludeHidden>true</IncludeHidden>
<Logging>verbose</Logging>
<MessageFormat>AdditionalInfo</MessageFormat>
<StackTraceFormat>ShortInfo</StackTraceFormat>
<StackTraceMaxLength>60</StackTraceMaxLength>
<StackTracePointReplacement>,</StackTracePointReplacement>
<TestCaseTimeout>-1</TestCaseTimeout><!-- Milliseconds -->
<!--<WorkingDirectory>..\TestData</WorkingDirectory>-->
<WorkingDirectoryRoot>Executable</WorkingDirectoryRoot>
</Catch2Adapter>
</RunSettings>