|
33 | 33 |
|
34 | 34 | namespace NUnit.VisualStudio.TestAdapter
|
35 | 35 | {
|
36 |
| - public interface IAdapterSettings |
37 |
| - { |
38 |
| - int MaxCpuCount { get; } |
39 |
| - string ResultsDirectory { get; } |
40 |
| - string TargetPlatform { get; } |
41 |
| - string TargetFrameworkVersion { get; } |
42 |
| - string TestAdapterPaths { get; } |
43 |
| - bool CollectSourceInformation { get; } |
44 |
| - IDictionary<string, string> TestProperties { get; } |
45 |
| - InternalTraceLevel InternalTraceLevelEnum { get; } |
46 |
| - string WorkDirectory { get; } |
47 |
| - string Where { get; } |
48 |
| - int DefaultTimeout { get; } |
49 |
| - int NumberOfTestWorkers { get; } |
50 |
| - bool ShadowCopyFiles { get; } |
51 |
| - int Verbosity { get; } |
52 |
| - bool UseVsKeepEngineRunning { get; } |
53 |
| - string BasePath { get; } |
54 |
| - string PrivateBinPath { get; } |
55 |
| - int? RandomSeed { get; } |
56 |
| - bool RandomSeedSpecified { get; } |
57 |
| - bool InProcDataCollectorsAvailable { get; } |
58 |
| - // ReSharper disable once UnusedMemberInSuper.Global |
59 |
| - bool CollectDataForEachTestSeparately { get; } // Used implicitly by MS |
60 |
| - bool SynchronousEvents { get; } |
61 |
| - string DomainUsage { get; } |
62 |
| - bool DumpXmlTestDiscovery { get; } |
63 |
| - bool DumpXmlTestResults { get; } |
64 |
| - |
65 |
| - bool DumpVsInput { get; } |
66 |
| - |
67 |
| - bool PreFilter { get; } |
68 |
| - |
69 |
| - /// <summary> |
70 |
| - /// Syntax documentation <see cref="https://github.com/nunit/docs/wiki/Template-Based-Test-Naming"/>. |
71 |
| - /// </summary> |
72 |
| - string DefaultTestNamePattern { get; } |
73 |
| - |
74 |
| - VsTestCategoryType VsTestCategoryType { get; } |
75 |
| - string TestOutputXml { get; } |
76 |
| - bool UseTestOutputXml { get; } |
77 |
| - OutputXmlFolderMode OutputXmlFolderMode { get; } |
78 |
| - |
79 |
| - /// <summary> |
80 |
| - /// For retry runs create a new file for each run. |
81 |
| - /// </summary> |
82 |
| - bool NewOutputXmlFileForEachRun { get; } |
83 |
| - |
84 |
| - /// <summary> |
85 |
| - /// True if test run is triggered in an IDE/Editor context. |
86 |
| - /// </summary> |
87 |
| - bool DesignMode { get; } |
88 |
| - |
89 |
| - /// <summary> |
90 |
| - /// If true, an adapter shouldn't create appdomains to run tests. |
91 |
| - /// </summary> |
92 |
| - bool DisableAppDomain { get; } |
93 |
| - |
94 |
| - /// <summary> |
95 |
| - /// If true, an adapter should disable any test case parallelization. |
96 |
| - /// </summary> |
97 |
| - bool DisableParallelization { get; } |
98 |
| - |
99 |
| - bool ShowInternalProperties { get; } |
100 |
| - |
101 |
| - bool UseParentFQNForParametrizedTests { get; } |
102 |
| - |
103 |
| - bool UseNUnitIdforTestCaseId { get; } |
104 |
| - |
105 |
| - int ConsoleOut { get; } |
106 |
| - bool StopOnError { get; } |
107 |
| - TestOutcome MapWarningTo { get; } |
108 |
| - bool UseTestNameInConsoleOutput { get; } |
109 |
| - DisplayNameOptions DisplayName { get; } |
110 |
| - char FullnameSeparator { get; } |
111 |
| - DiscoveryMethod DiscoveryMethod { get; } |
112 |
| - bool SkipNonTestAssemblies { get; } |
113 |
| - |
114 |
| - int AssemblySelectLimit { get; } |
115 |
| - |
116 |
| - bool UseNUnitFilter { get; } |
117 |
| - bool IncludeStackTraceForSuites { get; } |
118 |
| - |
119 |
| - |
120 |
| - void Load(IDiscoveryContext context, TestLogger testLogger = null); |
121 |
| - void Load(string settingsXml); |
122 |
| - void SaveRandomSeed(string dirname); |
123 |
| - void RestoreRandomSeed(string dirname); |
124 |
| - |
125 |
| - bool EnsureAttachmentFileScheme { get; } |
126 |
| - |
127 |
| - // For Internal Development use |
128 |
| - bool FreakMode { get; } // displays metadata instead of real data in Test Explorer |
129 |
| - bool Debug { get; } |
130 |
| - bool DebugExecution { get; } |
131 |
| - bool DebugDiscovery { get; } |
132 |
| - |
133 |
| - // Filter control |
134 |
| - ExplicitModeEnum ExplicitMode { get; } |
135 |
| - bool SkipExecutionWhenNoTests { get; } |
136 |
| - string TestOutputFolder { get; } |
137 |
| - string SetTestOutputFolder(string workDirectory); |
138 |
| - } |
139 |
| - |
140 | 36 | public enum VsTestCategoryType
|
141 | 37 | {
|
142 | 38 | NUnit,
|
@@ -197,6 +93,8 @@ public AdapterSettings(ITestLogger logger)
|
197 | 93 | /// </summary>
|
198 | 94 | public bool DisableParallelization { get; private set; }
|
199 | 95 |
|
| 96 | + public bool AllowParallelWithDebugger { get; private set; } |
| 97 | + |
200 | 98 | /// <summary>
|
201 | 99 | /// True if test run is triggered in an IDE/Editor context.
|
202 | 100 | /// </summary>
|
@@ -524,6 +422,7 @@ private void ExtractRunConfiguration(XmlDocument doc)
|
524 | 422 | CollectSourceInformation = GetInnerTextAsBool(runConfiguration, nameof(CollectSourceInformation), true);
|
525 | 423 | DisableAppDomain = GetInnerTextAsBool(runConfiguration, nameof(DisableAppDomain), false);
|
526 | 424 | DisableParallelization = GetInnerTextAsBool(runConfiguration, nameof(DisableParallelization), false);
|
| 425 | + AllowParallelWithDebugger = GetInnerTextAsBool(runConfiguration, nameof(AllowParallelWithDebugger), false); |
527 | 426 | DesignMode = GetInnerTextAsBool(runConfiguration, nameof(DesignMode), false);
|
528 | 427 | CollectDataForEachTestSeparately =
|
529 | 428 | GetInnerTextAsBool(runConfiguration, nameof(CollectDataForEachTestSeparately), false);
|
|
0 commit comments