Skip to content

Commit

Permalink
Update recipe to version 1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
CharliePoole committed Oct 9, 2024
1 parent 769ba49 commit 73e6883
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ TestResult.xml
*.VisualState.xml

# Packaging Directory
packaging
package/

# Tools pulled from nuget
tools
Expand Down
2 changes: 1 addition & 1 deletion GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
next-version: 2.0.0
next-version: 2.1.0
mode: ContinuousDelivery
legacy-semver-padding: 5
build-metadata-padding: 5
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
image: Visual Studio 2022

build_script:
- ps: .\build.ps1 --Target=AppVeyor --Configuration=Release
- ps: .\build.ps1 --Target=ContinuousIntegration --Configuration=Release

# disable built-in tests.
test: false
Expand Down
17 changes: 8 additions & 9 deletions build.cake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Load the recipe
#load nuget:?package=TestCentric.Cake.Recipe&version=1.2.1-dev00008
#load nuget:?package=TestCentric.Cake.Recipe&version=1.3.2
// Comment out above line and uncomment below for local tests of recipe changes
//#load ../TestCentric.Cake.Recipe/recipe/*.cake

Expand All @@ -8,7 +8,6 @@ BuildSettings.Initialize
context: Context,
title: "TestCentric Agent Core",
solutionFile: "TestCentric.Agent.Core.sln",
unitTests: "**/*.tests.exe",
githubOwner: "TestCentric",
githubRepository: "TestCentric.Agent.Core"
);
Expand Down Expand Up @@ -133,9 +132,9 @@ BuildSettings.Packages.Add(new NuGetPackage(
// TEST BED RUNNER
//////////////////////////////////////////////////////////////////////

public class DirectTestAgentRunner : TestRunner
public class DirectTestAgentRunner : TestRunner, IPackageTestRunner
{
public override int Run(string arguments)
public int RunPackageTest(string arguments)
{
// First argument must be relative path to a test assembly.
// It's immediate directory name is the name of the runtime.
Expand All @@ -159,14 +158,14 @@ public class DirectTestAgentRunner : TestRunner
else if (agentRuntime == "net5.0")
agentRuntime = "net6.0";

ExecutablePath = BuildSettings.OutputDirectory + $"direct-test-agent/{agentRuntime}/DirectTestAgent.exe";
var executablePath = BuildSettings.OutputDirectory + $"direct-test-agent/{agentRuntime}/DirectTestAgent.exe";

if (!System.IO.File.Exists(ExecutablePath))
throw new FileNotFoundException($"File not found: {ExecutablePath}");
if (!System.IO.File.Exists(executablePath))
throw new FileNotFoundException($"File not found: {executablePath}");

Console.WriteLine($"Trying to run {ExecutablePath} with arguments {arguments}");
Console.WriteLine($"Trying to run {executablePath} with arguments {arguments}");

return BuildSettings.Context.StartProcess(ExecutablePath, new ProcessSettings()
return BuildSettings.Context.StartProcess(executablePath, new ProcessSettings()
{
Arguments = arguments,
WorkingDirectory = BuildSettings.OutputDirectory
Expand Down

0 comments on commit 73e6883

Please sign in to comment.