Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,15 @@ void RunMutationTests(FilePath target, FilePath testProject)

Information($"Running mutation tests for '{targetFileName}'. Test Project: '{testProject}'");

var args = $"stryker --project {targetFileName} --test-project {testProject.FullPath} --break-at {score} --config-file {strykerConfigPath} --output {strykerOutput}/{targetFileName}";
var args = $"stryker --project {targetFileName} --test-project {testProject.GetFilename()} --break-at {score} --config-file {strykerConfigPath} --output {strykerOutput}/{targetFileName}";

var testProjectDir = testProject.GetDirectory();
var result = StartProcess("dotnet", new ProcessSettings
{
Arguments = args,
WorkingDirectory = testProjectDir.FullPath,
});

var result = StartProcess("dotnet", args);
if (result != 0)
{
throw new InvalidOperationException($"The mutation testing of '{targetFileName}' project failed.");
Expand Down