File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 5
5
<BuildPlatform Condition =" $(BuildPlatform) == ''" >Any CPU</BuildPlatform >
6
6
<Configuration Condition =" $(Configuration) == ''" >Release</Configuration >
7
7
<MSBuildCommunityTasksPath >$(Root)tools\MSBuildCommunityTasks</MSBuildCommunityTasksPath >
8
+ <NUnitHome >$(MSBuildProjectDirectory)\packages\NUnit.Runners.2.6.2\tools\</NUnitHome >
9
+ <NUnitConsole >$(NUnitHome)nunit-console.exe</NUnitConsole >
8
10
</PropertyGroup >
9
11
<ItemGroup >
10
- <NUnit Include =" $(Root)packages\NUnit.Runners.*\tools\nunit-console.exe" />
11
12
<NuGet Include =" $(Root)packages\NuGet.CommandLine.*\tools\NuGet.exe" />
12
13
</ItemGroup >
13
-
14
+
14
15
<Target Name =" Cleanup" >
15
16
<Error Condition =" $(Root) == ''" Text =" Root variable must be defined" />
16
- <Error Condition =" @(NUnit ) == ''" Text =" Cannot find nUnit runner" />
17
+ <Error Condition =" $(NUnitConsole ) == ''" Text =" Cannot find nUnit runner (have you upgraded NUnit.Runners?) " />
17
18
<Error Condition =" @(NuGet) == ''" Text =" Cannot find NuGet command line tool" />
18
19
19
20
<!-- Diagnostics -->
36
37
</Target >
37
38
38
39
<Target Name =" Test" DependsOnTargets =" Build" >
39
- <Exec Command =" @(NUnit) $(Root)TestStack.ConventionTests.Tests\bin\$(Configuration)\TestStack.ConventionTests.Tests.dll" />
40
+ <ItemGroup >
41
+ <NUnitAddinFiles Include =" $(teamcity_dotnet_nunitaddin)-2.6.2.*" />
42
+ </ItemGroup >
43
+ <!-- Copy nUnit teamcity into addins directory if we find addins-->
44
+ <MakeDir Directories =" $(NUnitHome)addins" />
45
+ <Copy SourceFiles =" @(NUnitAddinFiles)" DestinationFolder =" $(NUnitHome)addins" />
46
+
47
+ <Exec Command =" $(NUnitConsole) $(Root)TestStack.ConventionTests.Tests\bin\$(Configuration)\TestStack.ConventionTests.Tests.dll /nologo /noshadow" />
40
48
</Target >
41
49
42
50
<Target Name =" Publish" >
You can’t perform that action at this time.
0 commit comments