Merge lp:~simone.busoli/nunitv2/1057911 into lp:nunitv2
- 1057911
- Merge into trunk
Proposed by
Simone Busoli
Status: | Merged |
---|---|
Approved by: | Charlie Poole |
Approved revision: | 3431 |
Merged at revision: | 3434 |
Proposed branch: | lp:~simone.busoli/nunitv2/1057911 |
Merge into: | lp:nunitv2 |
Diff against target: |
615 lines (+299/-224) 7 files modified
src/ConsoleRunner/nunit-console-exe/nunit-console.exe.build (+1/-1) src/ConsoleRunner/nunit-console/ConsoleUi.cs (+91/-63) src/ConsoleRunner/tests/ConsoleRunnerTest.cs (+35/-1) src/ConsoleRunner/tests/EmptyLineTextFile.txt (+1/-0) src/ConsoleRunner/tests/EmptyTextFile.txt (+1/-0) src/ConsoleRunner/tests/nunit-console.tests.build (+4/-1) src/ConsoleRunner/tests/nunit-console.tests.csproj (+166/-158) |
To merge this branch: | bzr merge lp:~simone.busoli/nunitv2/1057911 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Charlie Poole | Approve | ||
Review via email: mp+129599@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'src/ConsoleRunner/nunit-console-exe/nunit-console.exe.build' |
2 | --- src/ConsoleRunner/nunit-console-exe/nunit-console.exe.build 2011-11-03 19:18:23 +0000 |
3 | +++ src/ConsoleRunner/nunit-console-exe/nunit-console.exe.build 2012-10-14 21:16:20 +0000 |
4 | @@ -12,7 +12,7 @@ |
5 | debug="${build.debug}" define="${build.defines}"> |
6 | <sources> |
7 | <patternset refid="source-files"/> |
8 | - <include name="../../GeneratedAssemblyInfo.cs"/> |
9 | + <include name="../../GeneratedAssemblyInfo.cs"/> |
10 | </sources> |
11 | <references basedir="${current.lib.dir}"> |
12 | <include name="nunit.core.dll"/> |
13 | |
14 | === modified file 'src/ConsoleRunner/nunit-console/ConsoleUi.cs' |
15 | --- src/ConsoleRunner/nunit-console/ConsoleUi.cs 2012-10-04 23:42:38 +0000 |
16 | +++ src/ConsoleRunner/nunit-console/ConsoleUi.cs 2012-10-14 21:16:20 +0000 |
17 | @@ -104,64 +104,13 @@ |
18 | return FIXTURE_NOT_FOUND; |
19 | } |
20 | |
21 | - EventCollector collector = new EventCollector( options, outWriter, errorWriter ); |
22 | - |
23 | - TestFilter testFilter = TestFilter.Empty; |
24 | - SimpleNameFilter nameFilter = new SimpleNameFilter(); |
25 | - |
26 | - if ( options.run != null && options.run != string.Empty ) |
27 | - { |
28 | - Console.WriteLine( "Selected test(s): " + options.run ); |
29 | - foreach (string name in TestNameParser.Parse(options.run)) |
30 | - nameFilter.Add(name); |
31 | - testFilter = nameFilter; |
32 | - } |
33 | - |
34 | - if (options.runlist != null && options.runlist != string.Empty) |
35 | - { |
36 | - Console.WriteLine("Run list: " + options.runlist); |
37 | - using (StreamReader rdr = new StreamReader(options.runlist)) |
38 | - { |
39 | - // NOTE: We can't use rdr.EndOfStream because it's |
40 | - // not present in .NET 1.x. |
41 | - string line = rdr.ReadLine(); |
42 | - while (line != null) |
43 | - { |
44 | - if (line[0] != '#') |
45 | - nameFilter.Add(line); |
46 | - line = rdr.ReadLine(); |
47 | - } |
48 | - } |
49 | - testFilter = nameFilter; |
50 | - } |
51 | - |
52 | - if ( options.include != null && options.include != string.Empty ) |
53 | - { |
54 | - TestFilter includeFilter = new CategoryExpression( options.include ).Filter; |
55 | - Console.WriteLine("Included categories: " + includeFilter.ToString()); |
56 | - |
57 | - if (testFilter.IsEmpty) |
58 | - testFilter = includeFilter; |
59 | - else |
60 | - testFilter = new AndFilter( testFilter, includeFilter ); |
61 | - } |
62 | - |
63 | - if ( options.exclude != null && options.exclude != string.Empty ) |
64 | - { |
65 | - TestFilter excludeFilter = new NotFilter( new CategoryExpression( options.exclude ).Filter ); |
66 | - Console.WriteLine("Excluded categories: " + excludeFilter.ToString()); |
67 | - |
68 | - if ( testFilter.IsEmpty ) |
69 | - testFilter = excludeFilter; |
70 | - else if ( testFilter is AndFilter ) |
71 | - ((AndFilter)testFilter).Add( excludeFilter ); |
72 | - else |
73 | - testFilter = new AndFilter( testFilter, excludeFilter ); |
74 | - } |
75 | - |
76 | - if (testFilter is NotFilter) |
77 | - ((NotFilter)testFilter).TopLevel = true; |
78 | - |
79 | + EventCollector collector = new EventCollector( options, outWriter, errorWriter ); |
80 | + |
81 | + TestFilter testFilter; |
82 | + |
83 | + if(!CreateTestFilter(options, out testFilter)) |
84 | + return INVALID_ARG; |
85 | + |
86 | TestResult result = null; |
87 | string savedDirectory = Environment.CurrentDirectory; |
88 | TextWriter savedOut = Console.Out; |
89 | @@ -176,9 +125,10 @@ |
90 | outWriter.Flush(); |
91 | errorWriter.Flush(); |
92 | |
93 | - if ( redirectOutput ) |
94 | + if (redirectOutput) |
95 | outWriter.Close(); |
96 | - if ( redirectError ) |
97 | + |
98 | + if (redirectError) |
99 | errorWriter.Close(); |
100 | |
101 | Environment.CurrentDirectory = savedDirectory; |
102 | @@ -233,7 +183,7 @@ |
103 | returnCode = summary.Errors + summary.Failures + summary.NotRunnable; |
104 | } |
105 | |
106 | - if ( collector.HasExceptions ) |
107 | + if (collector.HasExceptions) |
108 | { |
109 | collector.WriteExceptions(); |
110 | returnCode = UNEXPECTED_ERROR; |
111 | @@ -241,8 +191,86 @@ |
112 | |
113 | return returnCode; |
114 | } |
115 | - } |
116 | - |
117 | + } |
118 | + |
119 | + internal static bool CreateTestFilter(ConsoleOptions options, out TestFilter testFilter) |
120 | + { |
121 | + testFilter = TestFilter.Empty; |
122 | + |
123 | + SimpleNameFilter nameFilter = new SimpleNameFilter(); |
124 | + |
125 | + if (options.run != null && options.run != string.Empty) |
126 | + { |
127 | + Console.WriteLine("Selected test(s): " + options.run); |
128 | + |
129 | + foreach (string name in TestNameParser.Parse(options.run)) |
130 | + nameFilter.Add(name); |
131 | + |
132 | + testFilter = nameFilter; |
133 | + } |
134 | + |
135 | + if (options.runlist != null && options.runlist != string.Empty) |
136 | + { |
137 | + Console.WriteLine("Run list: " + options.runlist); |
138 | + |
139 | + try |
140 | + { |
141 | + using (StreamReader rdr = new StreamReader(options.runlist)) |
142 | + { |
143 | + // NOTE: We can't use rdr.EndOfStream because it's |
144 | + // not present in .NET 1.x. |
145 | + string line = rdr.ReadLine(); |
146 | + while (line != null && line.Length > 0) |
147 | + { |
148 | + if (line[0] != '#') |
149 | + nameFilter.Add(line); |
150 | + line = rdr.ReadLine(); |
151 | + } |
152 | + } |
153 | + } |
154 | + catch (Exception e) |
155 | + { |
156 | + if (e is FileNotFoundException || e is DirectoryNotFoundException) |
157 | + { |
158 | + Console.WriteLine("Unable to locate file: " + options.runlist); |
159 | + return false; |
160 | + } |
161 | + throw; |
162 | + } |
163 | + |
164 | + testFilter = nameFilter; |
165 | + } |
166 | + |
167 | + if (options.include != null && options.include != string.Empty) |
168 | + { |
169 | + TestFilter includeFilter = new CategoryExpression(options.include).Filter; |
170 | + Console.WriteLine("Included categories: " + includeFilter.ToString()); |
171 | + |
172 | + if (testFilter.IsEmpty) |
173 | + testFilter = includeFilter; |
174 | + else |
175 | + testFilter = new AndFilter(testFilter, includeFilter); |
176 | + } |
177 | + |
178 | + if (options.exclude != null && options.exclude != string.Empty) |
179 | + { |
180 | + TestFilter excludeFilter = new NotFilter(new CategoryExpression(options.exclude).Filter); |
181 | + Console.WriteLine("Excluded categories: " + excludeFilter.ToString()); |
182 | + |
183 | + if (testFilter.IsEmpty) |
184 | + testFilter = excludeFilter; |
185 | + else if (testFilter is AndFilter) |
186 | + ((AndFilter) testFilter).Add(excludeFilter); |
187 | + else |
188 | + testFilter = new AndFilter(testFilter, excludeFilter); |
189 | + } |
190 | + |
191 | + if (testFilter is NotFilter) |
192 | + ((NotFilter) testFilter).TopLevel = true; |
193 | + |
194 | + return true; |
195 | + } |
196 | + |
197 | #region Helper Methods |
198 | // TODO: See if this can be unified with the Gui's MakeTestPackage |
199 | private TestPackage MakeTestPackage( ConsoleOptions options ) |
200 | |
201 | === modified file 'src/ConsoleRunner/tests/ConsoleRunnerTest.cs' |
202 | --- src/ConsoleRunner/tests/ConsoleRunnerTest.cs 2012-07-08 17:20:44 +0000 |
203 | +++ src/ConsoleRunner/tests/ConsoleRunnerTest.cs 2012-10-14 21:16:20 +0000 |
204 | @@ -4,7 +4,8 @@ |
205 | // copyright ownership at http://nunit.org. |
206 | // **************************************************************** |
207 | |
208 | -using System; |
209 | +using System; |
210 | +using System.Diagnostics; |
211 | using System.IO; |
212 | using System.Text; |
213 | using System.Collections; |
214 | @@ -174,6 +175,39 @@ |
215 | StringAssert.Contains( failureMsg, output.ToString() ); |
216 | } |
217 | |
218 | + [Test] |
219 | + public void DoesNotFailWithEmptyRunList() |
220 | + { |
221 | + int returnCode = runFixture(typeof(SuccessTest), "-runlist=EmptyTextFile.txt"); |
222 | + Assert.AreEqual(0, returnCode); |
223 | + StringAssert.Contains("Tests run: 0", output.ToString()); |
224 | + } |
225 | + |
226 | + [Test] |
227 | + public void DoesNotFailIfRunListHasEmptyLines() |
228 | + { |
229 | + int returnCode = runFixture(typeof(SuccessTest), "-runlist=EmptyLineTextFile.txt"); |
230 | + Assert.AreEqual(0, returnCode); |
231 | + StringAssert.Contains("Tests run: 0", output.ToString()); |
232 | + } |
233 | + |
234 | + [Test] |
235 | + public void FailsGracefullyIfRunListPointsToNonExistingFile() |
236 | + { |
237 | + int returnCode = runFixture(typeof(SuccessTest), "-runlist=NonExistingFile.txt"); |
238 | + Assert.AreEqual(ConsoleUi.INVALID_ARG, returnCode); |
239 | + StringAssert.Contains("NonExistingFile.txt", output.ToString()); |
240 | + } |
241 | + |
242 | + |
243 | + [Test] |
244 | + public void FailsGracefullyIfRunListPointsToNonExistingDirectory() |
245 | + { |
246 | + int returnCode = runFixture(typeof(SuccessTest), "-runlist=NonExistingDirectory\\NonExistingFile.txt"); |
247 | + Assert.AreEqual(ConsoleUi.INVALID_ARG, returnCode); |
248 | + StringAssert.Contains("NonExistingDirectory", output.ToString()); |
249 | + } |
250 | + |
251 | private int runFixture( Type type ) |
252 | { |
253 | return executeConsole(new string[] { AssemblyHelper.GetAssemblyPath(type), "-fixture:" + type.FullName, "-noxml" }); |
254 | |
255 | === added file 'src/ConsoleRunner/tests/EmptyLineTextFile.txt' |
256 | --- src/ConsoleRunner/tests/EmptyLineTextFile.txt 1970-01-01 00:00:00 +0000 |
257 | +++ src/ConsoleRunner/tests/EmptyLineTextFile.txt 2012-10-14 21:16:20 +0000 |
258 | @@ -0,0 +1,1 @@ |
259 | + |
260 | |
261 | === added file 'src/ConsoleRunner/tests/EmptyTextFile.txt' |
262 | --- src/ConsoleRunner/tests/EmptyTextFile.txt 1970-01-01 00:00:00 +0000 |
263 | +++ src/ConsoleRunner/tests/EmptyTextFile.txt 2012-10-14 21:16:20 +0000 |
264 | @@ -0,0 +1,1 @@ |
265 | + |
266 | \ No newline at end of file |
267 | |
268 | === modified file 'src/ConsoleRunner/tests/nunit-console.tests.build' |
269 | --- src/ConsoleRunner/tests/nunit-console.tests.build 2011-03-14 17:09:10 +0000 |
270 | +++ src/ConsoleRunner/tests/nunit-console.tests.build 2012-10-14 21:16:20 +0000 |
271 | @@ -25,9 +25,12 @@ |
272 | <include name="${current.test.dir}/nunit.framework.tests.dll"/> |
273 | <include name="${current.test.dir}/test-assembly.dll"/> |
274 | <include name="${current.test.dir}/mock-assembly.dll"/> |
275 | - <include name="${current.test.dir}/nonamespace-assembly.dll"/> |
276 | + <include name="${current.test.dir}/nonamespace-assembly.dll"/> |
277 | </references> |
278 | </csc> |
279 | + |
280 | + <copy file="EmptyTextFile.txt" tofile="${current.test.dir}/EmptyTextFile.txt"/> |
281 | + <copy file="EmptyLineTextFile.txt" tofile="${current.test.dir}/EmptyLineTextFile.txt"/> |
282 | </target> |
283 | |
284 | <target name="package"> |
285 | |
286 | === modified file 'src/ConsoleRunner/tests/nunit-console.tests.csproj' |
287 | --- src/ConsoleRunner/tests/nunit-console.tests.csproj 2012-09-18 03:49:27 +0000 |
288 | +++ src/ConsoleRunner/tests/nunit-console.tests.csproj 2012-10-14 21:16:20 +0000 |
289 | @@ -1,159 +1,167 @@ |
290 | -<?xml version="1.0" encoding="utf-8"?> |
291 | -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> |
292 | - <PropertyGroup> |
293 | - <ProjectType>Local</ProjectType> |
294 | - <ProductVersion>9.0.21022</ProductVersion> |
295 | - <SchemaVersion>2.0</SchemaVersion> |
296 | - <ProjectGuid>{8597D2C6-804D-48CB-BFC7-ED2404D389B0}</ProjectGuid> |
297 | - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
298 | - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
299 | - <AssemblyKeyContainerName> |
300 | - </AssemblyKeyContainerName> |
301 | - <AssemblyName>nunit-console.tests</AssemblyName> |
302 | - <DefaultClientScript>JScript</DefaultClientScript> |
303 | - <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout> |
304 | - <DefaultTargetSchema>IE50</DefaultTargetSchema> |
305 | - <DelaySign>false</DelaySign> |
306 | - <OutputType>Library</OutputType> |
307 | - <RootNamespace>ConsoleRunner.Tests</RootNamespace> |
308 | - <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent> |
309 | - <FileUpgradeFlags> |
310 | - </FileUpgradeFlags> |
311 | - <UpgradeBackupLocation> |
312 | - </UpgradeBackupLocation> |
313 | - <OldToolsVersion>3.5</OldToolsVersion> |
314 | - <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> |
315 | - <PublishUrl>publish\</PublishUrl> |
316 | - <Install>true</Install> |
317 | - <InstallFrom>Disk</InstallFrom> |
318 | - <UpdateEnabled>false</UpdateEnabled> |
319 | - <UpdateMode>Foreground</UpdateMode> |
320 | - <UpdateInterval>7</UpdateInterval> |
321 | - <UpdateIntervalUnits>Days</UpdateIntervalUnits> |
322 | - <UpdatePeriodically>false</UpdatePeriodically> |
323 | - <UpdateRequired>false</UpdateRequired> |
324 | - <MapFileExtensions>true</MapFileExtensions> |
325 | - <ApplicationRevision>0</ApplicationRevision> |
326 | - <ApplicationVersion>1.0.0.%2a</ApplicationVersion> |
327 | - <IsWebBootstrapper>false</IsWebBootstrapper> |
328 | - <UseApplicationTrust>false</UseApplicationTrust> |
329 | - <BootstrapperEnabled>true</BootstrapperEnabled> |
330 | - </PropertyGroup> |
331 | - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
332 | - <OutputPath>..\..\..\bin\Debug\tests\</OutputPath> |
333 | - <BaseAddress>285212672</BaseAddress> |
334 | - <ConfigurationOverrideFile> |
335 | - </ConfigurationOverrideFile> |
336 | - <DefineConstants>TRACE;DEBUG;CLR_2_0,NET_2_0,CS_3_0</DefineConstants> |
337 | - <DocumentationFile> |
338 | - </DocumentationFile> |
339 | - <DebugSymbols>true</DebugSymbols> |
340 | - <FileAlignment>4096</FileAlignment> |
341 | - <Optimize>false</Optimize> |
342 | - <RegisterForComInterop>false</RegisterForComInterop> |
343 | - <RemoveIntegerChecks>false</RemoveIntegerChecks> |
344 | - <WarningLevel>4</WarningLevel> |
345 | - <DebugType>full</DebugType> |
346 | - <ErrorReport>prompt</ErrorReport> |
347 | - <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> |
348 | - </PropertyGroup> |
349 | - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
350 | - <OutputPath>..\..\..\bin\Release\tests\</OutputPath> |
351 | - <BaseAddress>285212672</BaseAddress> |
352 | - <ConfigurationOverrideFile> |
353 | - </ConfigurationOverrideFile> |
354 | - <DefineConstants>TRACE;CLR_2_0,NET_2_0,CS_3_0</DefineConstants> |
355 | - <DocumentationFile> |
356 | - </DocumentationFile> |
357 | - <FileAlignment>4096</FileAlignment> |
358 | - <Optimize>true</Optimize> |
359 | - <RegisterForComInterop>false</RegisterForComInterop> |
360 | - <RemoveIntegerChecks>false</RemoveIntegerChecks> |
361 | - <WarningLevel>4</WarningLevel> |
362 | - <DebugType>none</DebugType> |
363 | - <ErrorReport>prompt</ErrorReport> |
364 | - <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> |
365 | - </PropertyGroup> |
366 | - <ItemGroup> |
367 | - <Reference Include="System"> |
368 | - <Name>System</Name> |
369 | - </Reference> |
370 | - <Reference Include="System.Data"> |
371 | - <Name>System.Data</Name> |
372 | - </Reference> |
373 | - <Reference Include="System.Xml"> |
374 | - <Name>System.XML</Name> |
375 | - </Reference> |
376 | - <ProjectReference Include="..\..\ClientUtilities\util\nunit.util.dll.csproj"> |
377 | - <Name>nunit.util.dll</Name> |
378 | - <Project>{61CE9CE5-943E-44D4-A381-814DC1406767}</Project> |
379 | - <Private>False</Private> |
380 | - </ProjectReference> |
381 | - <ProjectReference Include="..\..\NUnitCore\core\nunit.core.dll.csproj"> |
382 | - <Project>{EBD43A7F-AFCA-4281-BB53-5CDD91F966A3}</Project> |
383 | - <Name>nunit.core.dll</Name> |
384 | - </ProjectReference> |
385 | - <ProjectReference Include="..\..\NUnitCore\interfaces\nunit.core.interfaces.dll.csproj"> |
386 | - <Project>{435428F8-5995-4CE4-8022-93D595A8CC0F}</Project> |
387 | - <Name>nunit.core.interfaces.dll</Name> |
388 | - </ProjectReference> |
389 | - <ProjectReference Include="..\..\NUnitFramework\framework\nunit.framework.dll.csproj"> |
390 | - <Name>nunit.framework.dll</Name> |
391 | - <Project>{83DD7E12-A705-4DBA-9D71-09C8973D9382}</Project> |
392 | - </ProjectReference> |
393 | - <ProjectReference Include="..\..\tests\mock-assembly\mock-assembly.csproj"> |
394 | - <Project>{2E368281-3BA8-4050-B05E-0E0E43F8F446}</Project> |
395 | - <Name>mock-assembly</Name> |
396 | - <Private>False</Private> |
397 | - </ProjectReference> |
398 | - <ProjectReference Include="..\..\tests\nonamespace-assembly\nonamespace-assembly.csproj"> |
399 | - <Project>{5110F0D2-8E50-46F8-9E17-7C8EBFECCA9D}</Project> |
400 | - <Name>nonamespace-assembly</Name> |
401 | - </ProjectReference> |
402 | - <ProjectReference Include="..\..\tests\test-assembly\test-assembly.csproj"> |
403 | - <Name>test-assembly</Name> |
404 | - <Project>{1960CAC4-9A82-47C5-A9B3-55BC37572C3C}</Project> |
405 | - </ProjectReference> |
406 | - <ProjectReference Include="..\nunit-console\nunit-console.csproj"> |
407 | - <Name>nunit-console</Name> |
408 | - <Project>{9367EC89-6A38-42BA-9607-0DC288E4BC3A}</Project> |
409 | - <Private>False</Private> |
410 | - </ProjectReference> |
411 | - </ItemGroup> |
412 | - <ItemGroup> |
413 | - <Compile Include="..\..\CommonAssemblyInfo.cs"> |
414 | - <Link>CommonAssemblyInfo.cs</Link> |
415 | - </Compile> |
416 | - <Compile Include="CommandLineTests.cs" /> |
417 | - <Compile Include="CommandLineTests_MultipleAssemblies.cs" /> |
418 | - <Compile Include="ConsoleRunnerTest.cs" /> |
419 | - <Compile Include="TestNameParserTests.cs" /> |
420 | - </ItemGroup> |
421 | - <ItemGroup> |
422 | - <None Include="nunit-console.tests.build" /> |
423 | - </ItemGroup> |
424 | - <ItemGroup> |
425 | - <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> |
426 | - <Visible>False</Visible> |
427 | - <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName> |
428 | - <Install>false</Install> |
429 | - </BootstrapperPackage> |
430 | - <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> |
431 | - <Visible>False</Visible> |
432 | - <ProductName>.NET Framework 3.5 SP1</ProductName> |
433 | - <Install>true</Install> |
434 | - </BootstrapperPackage> |
435 | - <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> |
436 | - <Visible>False</Visible> |
437 | - <ProductName>Windows Installer 3.1</ProductName> |
438 | - <Install>true</Install> |
439 | - </BootstrapperPackage> |
440 | - </ItemGroup> |
441 | - <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> |
442 | - <PropertyGroup> |
443 | - <PreBuildEvent> |
444 | - </PreBuildEvent> |
445 | - <PostBuildEvent> |
446 | - </PostBuildEvent> |
447 | - </PropertyGroup> |
448 | +<?xml version="1.0" encoding="utf-8"?> |
449 | +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> |
450 | + <PropertyGroup> |
451 | + <ProjectType>Local</ProjectType> |
452 | + <ProductVersion>9.0.21022</ProductVersion> |
453 | + <SchemaVersion>2.0</SchemaVersion> |
454 | + <ProjectGuid>{8597D2C6-804D-48CB-BFC7-ED2404D389B0}</ProjectGuid> |
455 | + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
456 | + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
457 | + <AssemblyKeyContainerName> |
458 | + </AssemblyKeyContainerName> |
459 | + <AssemblyName>nunit-console.tests</AssemblyName> |
460 | + <DefaultClientScript>JScript</DefaultClientScript> |
461 | + <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout> |
462 | + <DefaultTargetSchema>IE50</DefaultTargetSchema> |
463 | + <DelaySign>false</DelaySign> |
464 | + <OutputType>Library</OutputType> |
465 | + <RootNamespace>ConsoleRunner.Tests</RootNamespace> |
466 | + <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent> |
467 | + <FileUpgradeFlags> |
468 | + </FileUpgradeFlags> |
469 | + <UpgradeBackupLocation> |
470 | + </UpgradeBackupLocation> |
471 | + <OldToolsVersion>3.5</OldToolsVersion> |
472 | + <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> |
473 | + <PublishUrl>publish\</PublishUrl> |
474 | + <Install>true</Install> |
475 | + <InstallFrom>Disk</InstallFrom> |
476 | + <UpdateEnabled>false</UpdateEnabled> |
477 | + <UpdateMode>Foreground</UpdateMode> |
478 | + <UpdateInterval>7</UpdateInterval> |
479 | + <UpdateIntervalUnits>Days</UpdateIntervalUnits> |
480 | + <UpdatePeriodically>false</UpdatePeriodically> |
481 | + <UpdateRequired>false</UpdateRequired> |
482 | + <MapFileExtensions>true</MapFileExtensions> |
483 | + <ApplicationRevision>0</ApplicationRevision> |
484 | + <ApplicationVersion>1.0.0.%2a</ApplicationVersion> |
485 | + <IsWebBootstrapper>false</IsWebBootstrapper> |
486 | + <UseApplicationTrust>false</UseApplicationTrust> |
487 | + <BootstrapperEnabled>true</BootstrapperEnabled> |
488 | + </PropertyGroup> |
489 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
490 | + <OutputPath>..\..\..\bin\Debug\tests\</OutputPath> |
491 | + <BaseAddress>285212672</BaseAddress> |
492 | + <ConfigurationOverrideFile> |
493 | + </ConfigurationOverrideFile> |
494 | + <DefineConstants>TRACE;DEBUG;CLR_2_0,NET_2_0,CS_3_0</DefineConstants> |
495 | + <DocumentationFile> |
496 | + </DocumentationFile> |
497 | + <DebugSymbols>true</DebugSymbols> |
498 | + <FileAlignment>4096</FileAlignment> |
499 | + <Optimize>false</Optimize> |
500 | + <RegisterForComInterop>false</RegisterForComInterop> |
501 | + <RemoveIntegerChecks>false</RemoveIntegerChecks> |
502 | + <WarningLevel>4</WarningLevel> |
503 | + <DebugType>full</DebugType> |
504 | + <ErrorReport>prompt</ErrorReport> |
505 | + <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> |
506 | + </PropertyGroup> |
507 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
508 | + <OutputPath>..\..\..\bin\Release\tests\</OutputPath> |
509 | + <BaseAddress>285212672</BaseAddress> |
510 | + <ConfigurationOverrideFile> |
511 | + </ConfigurationOverrideFile> |
512 | + <DefineConstants>TRACE;CLR_2_0,NET_2_0,CS_3_0</DefineConstants> |
513 | + <DocumentationFile> |
514 | + </DocumentationFile> |
515 | + <FileAlignment>4096</FileAlignment> |
516 | + <Optimize>true</Optimize> |
517 | + <RegisterForComInterop>false</RegisterForComInterop> |
518 | + <RemoveIntegerChecks>false</RemoveIntegerChecks> |
519 | + <WarningLevel>4</WarningLevel> |
520 | + <DebugType>none</DebugType> |
521 | + <ErrorReport>prompt</ErrorReport> |
522 | + <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> |
523 | + </PropertyGroup> |
524 | + <ItemGroup> |
525 | + <Reference Include="System"> |
526 | + <Name>System</Name> |
527 | + </Reference> |
528 | + <Reference Include="System.Data"> |
529 | + <Name>System.Data</Name> |
530 | + </Reference> |
531 | + <Reference Include="System.Xml"> |
532 | + <Name>System.XML</Name> |
533 | + </Reference> |
534 | + <ProjectReference Include="..\..\ClientUtilities\util\nunit.util.dll.csproj"> |
535 | + <Name>nunit.util.dll</Name> |
536 | + <Project>{61CE9CE5-943E-44D4-A381-814DC1406767}</Project> |
537 | + <Private>False</Private> |
538 | + </ProjectReference> |
539 | + <ProjectReference Include="..\..\NUnitCore\core\nunit.core.dll.csproj"> |
540 | + <Project>{EBD43A7F-AFCA-4281-BB53-5CDD91F966A3}</Project> |
541 | + <Name>nunit.core.dll</Name> |
542 | + </ProjectReference> |
543 | + <ProjectReference Include="..\..\NUnitCore\interfaces\nunit.core.interfaces.dll.csproj"> |
544 | + <Project>{435428F8-5995-4CE4-8022-93D595A8CC0F}</Project> |
545 | + <Name>nunit.core.interfaces.dll</Name> |
546 | + </ProjectReference> |
547 | + <ProjectReference Include="..\..\NUnitFramework\framework\nunit.framework.dll.csproj"> |
548 | + <Name>nunit.framework.dll</Name> |
549 | + <Project>{83DD7E12-A705-4DBA-9D71-09C8973D9382}</Project> |
550 | + </ProjectReference> |
551 | + <ProjectReference Include="..\..\tests\mock-assembly\mock-assembly.csproj"> |
552 | + <Project>{2E368281-3BA8-4050-B05E-0E0E43F8F446}</Project> |
553 | + <Name>mock-assembly</Name> |
554 | + <Private>False</Private> |
555 | + </ProjectReference> |
556 | + <ProjectReference Include="..\..\tests\nonamespace-assembly\nonamespace-assembly.csproj"> |
557 | + <Project>{5110F0D2-8E50-46F8-9E17-7C8EBFECCA9D}</Project> |
558 | + <Name>nonamespace-assembly</Name> |
559 | + </ProjectReference> |
560 | + <ProjectReference Include="..\..\tests\test-assembly\test-assembly.csproj"> |
561 | + <Name>test-assembly</Name> |
562 | + <Project>{1960CAC4-9A82-47C5-A9B3-55BC37572C3C}</Project> |
563 | + </ProjectReference> |
564 | + <ProjectReference Include="..\nunit-console\nunit-console.csproj"> |
565 | + <Name>nunit-console</Name> |
566 | + <Project>{9367EC89-6A38-42BA-9607-0DC288E4BC3A}</Project> |
567 | + <Private>False</Private> |
568 | + </ProjectReference> |
569 | + </ItemGroup> |
570 | + <ItemGroup> |
571 | + <Compile Include="..\..\CommonAssemblyInfo.cs"> |
572 | + <Link>CommonAssemblyInfo.cs</Link> |
573 | + </Compile> |
574 | + <Compile Include="CommandLineTests.cs" /> |
575 | + <Compile Include="CommandLineTests_MultipleAssemblies.cs" /> |
576 | + <Compile Include="ConsoleRunnerTest.cs" /> |
577 | + <Compile Include="TestNameParserTests.cs" /> |
578 | + </ItemGroup> |
579 | + <ItemGroup> |
580 | + <None Include="nunit-console.tests.build" /> |
581 | + </ItemGroup> |
582 | + <ItemGroup> |
583 | + <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> |
584 | + <Visible>False</Visible> |
585 | + <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName> |
586 | + <Install>false</Install> |
587 | + </BootstrapperPackage> |
588 | + <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> |
589 | + <Visible>False</Visible> |
590 | + <ProductName>.NET Framework 3.5 SP1</ProductName> |
591 | + <Install>true</Install> |
592 | + </BootstrapperPackage> |
593 | + <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> |
594 | + <Visible>False</Visible> |
595 | + <ProductName>Windows Installer 3.1</ProductName> |
596 | + <Install>true</Install> |
597 | + </BootstrapperPackage> |
598 | + </ItemGroup> |
599 | + <ItemGroup> |
600 | + <Content Include="EmptyLineTextFile.txt"> |
601 | + <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
602 | + </Content> |
603 | + <Content Include="EmptyTextFile.txt"> |
604 | + <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
605 | + </Content> |
606 | + </ItemGroup> |
607 | + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> |
608 | + <PropertyGroup> |
609 | + <PreBuildEvent> |
610 | + </PreBuildEvent> |
611 | + <PostBuildEvent> |
612 | + </PostBuildEvent> |
613 | + </PropertyGroup> |
614 | </Project> |
615 | \ No newline at end of file |
OK