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
5 changes: 5 additions & 0 deletions Pipeline/Build.MutationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ namespace Build;

partial class Build
{
private static bool DisableMutationTests = true;
Comment thread
vbreuss marked this conversation as resolved.
AbsolutePath StrykerOutputDirectory => ArtifactsDirectory / "Stryker";
AbsolutePath StrykerToolPath => TestResultsDirectory / "dotnet-stryker";

Target MutationTestsCore => _ => _
.DependsOn(Compile)
.OnlyWhenDynamic(() => !DisableMutationTests)
.OnlyWhenDynamic(() => BuildScope == BuildScope.Default)
.OnlyWhenDynamic(() => Repository.Branch != "main" && Repository.Tags.Count == 0)
.Executes(() =>
Expand All @@ -37,6 +39,7 @@ partial class Build

Target MutationTestsMain => _ => _
.DependsOn(Compile)
.OnlyWhenDynamic(() => !DisableMutationTests)
.OnlyWhenDynamic(() => BuildScope == BuildScope.Default)
.Executes(() =>
{
Expand All @@ -48,6 +51,7 @@ partial class Build
.After(MutationTestsMain)
.After(MutationTestsCore)
.DependsOn(MutationTestsDashboard)
.OnlyWhenDynamic(() => !DisableMutationTests)
.OnlyWhenDynamic(() => BuildScope == BuildScope.Default)
.Executes(async () =>
{
Expand Down Expand Up @@ -113,6 +117,7 @@ await gitHubClient.Issue.Comment.Update("aweXpect", "aweXpect",
Target MutationTestsDashboard => _ => _
.After(MutationTestsMain)
.After(MutationTestsCore)
.OnlyWhenDynamic(() => !DisableMutationTests)
.OnlyWhenDynamic(() => BuildScope == BuildScope.Default)
.Executes(async () =>
{
Expand Down
Loading