Skip to content

Commit

Permalink
Add tests using NUnit V2 Driver
Browse files Browse the repository at this point in the history
  • Loading branch information
CharliePoole committed Oct 7, 2024
1 parent 9169a71 commit dee8764
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
26 changes: 25 additions & 1 deletion build.cake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Load the recipe
#load nuget:?package=NUnit.Cake.Recipe&version=1.2.0-dev00007
#load nuget:?package=NUnit.Cake.Recipe&version=1.2.0-dev00009
// Comment out above line and uncomment below for local tests of recipe changes
//#load ../NUnit.Cake.Recipe/recipe/*.cake

Expand Down Expand Up @@ -189,6 +189,30 @@ BuildSettings.Packages.AddRange(new PackageDefinition[] {
})
});

Task("BuildZipPackage")
.Does(() =>
{
NUnitConsoleZipPackage.BuildPackage();
});

Task("InstallZipPackage")
.Does(() =>
{
NUnitConsoleZipPackage.InstallPackage();
});

Task("VerifyZipPackage")
.Does(() =>
{
NUnitConsoleZipPackage.VerifyPackage();
});

Task("TestZipPackage")
.Does(() =>
{
NUnitConsoleZipPackage.RunPackageTests();
});

// Adhoc code to check content of a dotnet standalone executable
// TODO: Incorporate this in the recipe itself

Expand Down
8 changes: 7 additions & 1 deletion src/NUnitEngine/nunit-agent/nunit-agent.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@
<ItemGroup>
<Compile Include="..\nunit.engine.core\Internal\ExceptionHelper.cs" Link="ExceptionHelper.cs" />
</ItemGroup>


<ItemGroup Condition="'$(TargetFramework)'=='net462'">
<Content Include="nunit.agent.addins">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>

<ItemGroup>
<Content Include="..\..\..\nunit.ico">
<Link>nunit.ico</Link>
Expand Down
5 changes: 5 additions & 0 deletions src/NUnitEngine/nunit-agent/nunit.agent.addins
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
../../net462/addins/nunit.v2.driver.dll
../../net462/addins/nunit-v2-result-writer.dll
../../net462/addins/nunit-project-loader.dll
../../net462/addins/vs-project-loader.dll
../../net462/addins/teamcity-event-listener.dll

0 comments on commit dee8764

Please sign in to comment.