Skip to content

Commit

Permalink
Fix search path for worker in app tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanfish committed Aug 21, 2024
1 parent fdcde16 commit f90ed39
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions NAPS2.App.Tests/Targets/WindowsAppTestTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ namespace NAPS2.App.Tests.Targets;

public class WindowsAppTestTarget : IAppTestTarget
{
public AppTestExe Console => GetAppTestExe("NAPS2.App.Console", "NAPS2.Console.exe", null);
public AppTestExe Gui => GetAppTestExe("NAPS2.App.WinForms", "NAPS2.exe", null);
public AppTestExe Worker => GetAppTestExe("NAPS2.App.Worker", "NAPS2.Worker.exe", "lib");
public AppTestExe Console => GetAppTestExe("NAPS2.App.Console", "NAPS2.Console.exe", "win-x64", null);
public AppTestExe Gui => GetAppTestExe("NAPS2.App.WinForms", "NAPS2.exe", "win-x64", null);
public AppTestExe Worker => GetAppTestExe("NAPS2.App.Worker", "NAPS2.Worker.exe", "win-x86", "lib");
public bool IsWindows => true;

private AppTestExe GetAppTestExe(string project, string exeName, string testRootSubPath)
private AppTestExe GetAppTestExe(string project, string exeName, string arch, string testRootSubPath)
{
return new AppTestExe(
Path.Combine(AppTestHelper.SolutionRoot, project, "bin", "Debug", "net9-windows", "win-x64"),
Path.Combine(AppTestHelper.SolutionRoot, project, "bin", "Debug", "net9-windows", arch),
exeName,
TestRootSubPath: testRootSubPath);
}
Expand Down

0 comments on commit f90ed39

Please sign in to comment.