Skip to content

Commit dee8764

Browse files
committed
Add tests using NUnit V2 Driver
1 parent 9169a71 commit dee8764

File tree

3 files changed

+37
-2
lines changed

3 files changed

+37
-2
lines changed

build.cake

+25-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Load the recipe
2-
#load nuget:?package=NUnit.Cake.Recipe&version=1.2.0-dev00007
2+
#load nuget:?package=NUnit.Cake.Recipe&version=1.2.0-dev00009
33
// Comment out above line and uncomment below for local tests of recipe changes
44
//#load ../NUnit.Cake.Recipe/recipe/*.cake
55

@@ -189,6 +189,30 @@ BuildSettings.Packages.AddRange(new PackageDefinition[] {
189189
})
190190
});
191191

192+
Task("BuildZipPackage")
193+
.Does(() =>
194+
{
195+
NUnitConsoleZipPackage.BuildPackage();
196+
});
197+
198+
Task("InstallZipPackage")
199+
.Does(() =>
200+
{
201+
NUnitConsoleZipPackage.InstallPackage();
202+
});
203+
204+
Task("VerifyZipPackage")
205+
.Does(() =>
206+
{
207+
NUnitConsoleZipPackage.VerifyPackage();
208+
});
209+
210+
Task("TestZipPackage")
211+
.Does(() =>
212+
{
213+
NUnitConsoleZipPackage.RunPackageTests();
214+
});
215+
192216
// Adhoc code to check content of a dotnet standalone executable
193217
// TODO: Incorporate this in the recipe itself
194218

src/NUnitEngine/nunit-agent/nunit-agent.csproj

+7-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@
2525
<ItemGroup>
2626
<Compile Include="..\nunit.engine.core\Internal\ExceptionHelper.cs" Link="ExceptionHelper.cs" />
2727
</ItemGroup>
28-
28+
29+
<ItemGroup Condition="'$(TargetFramework)'=='net462'">
30+
<Content Include="nunit.agent.addins">
31+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
32+
</Content>
33+
</ItemGroup>
34+
2935
<ItemGroup>
3036
<Content Include="..\..\..\nunit.ico">
3137
<Link>nunit.ico</Link>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
../../net462/addins/nunit.v2.driver.dll
2+
../../net462/addins/nunit-v2-result-writer.dll
3+
../../net462/addins/nunit-project-loader.dll
4+
../../net462/addins/vs-project-loader.dll
5+
../../net462/addins/teamcity-event-listener.dll

0 commit comments

Comments
 (0)