Skip to content

Commit 6e95b01

Browse files
committed
Update to latest version of recipe
1 parent 0414ced commit 6e95b01

File tree

2 files changed

+301
-257
lines changed

2 files changed

+301
-257
lines changed

build.cake

+4-5
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.3.0
2+
#load nuget:?package=NUnit.Cake.Recipe&version=1.4.0-alpha.1
33
// Comment out above line and uncomment below for local tests of recipe changes
44
//#load ../NUnit.Cake.Recipe/recipe/*.cake
55

@@ -79,8 +79,7 @@ BuildSettings.Packages.AddRange(new PackageDefinition[] {
7979
"nunit.extensibility.api.dll", "nunit.engine.api.dll", "testcentric.metadata.dll",
8080
"Microsoft.Extensions.DependencyModel.dll")
8181
},
82-
testRunner: new ConsoleRunnerSelfTester(BuildSettings.NuGetTestDirectory
83-
+ $"NUnit.ConsoleRunner.NetCore.{BuildSettings.PackageVersion}/nunit.exe"),
82+
testRunner: new ConsoleRunnerSelfTester(BuildSettings.NuGetTestDirectory + "nunit.exe"),
8483
tests: NetCoreRunnerTests),
8584

8685
NUnitConsoleRunnerChocolateyPackage = new ChocolateyPackage(
@@ -167,10 +166,10 @@ public class ConsoleRunnerSelfTester : TestRunner, IPackageTestRunner
167166
_executablePath = executablePath;
168167
}
169168

170-
public int RunPackageTest(string arguments)
169+
public int RunPackageTest(string arguments, bool redirectOutput)
171170
{
172171
Console.WriteLine("Running package test");
173-
return base.RunTest(_executablePath, arguments);
172+
return base.RunPackageTest(_executablePath, new ProcessSettings() { Arguments = arguments, RedirectStandardOutput = redirectOutput });
174173
}
175174
}
176175

0 commit comments

Comments
 (0)