Skip to content
Closed
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
2 changes: 2 additions & 0 deletions src/Stryker.Core/Stryker.Core/Reporters/Json/JsonReport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class JsonReport
public string ProjectRoot { get; init; }
public IDictionary<string, SourceFile> Files { get; init; } = new Dictionary<string, SourceFile>();
public IDictionary<string, JsonTestFile> TestFiles { get; set; } = null;
public double MutationScore { get; set; }

public JsonReport() { }

Expand All @@ -27,6 +28,7 @@ private JsonReport(StrykerOptions options, IReadOnlyProjectComponent mutationRep

Merge(Files, GenerateReportComponents(mutationReport));
AddTestFiles(testProjectsInfo);
MutationScore = mutationReport.GetMutationScore() * 100;
}

public static JsonReport Build(StrykerOptions options, IReadOnlyProjectComponent mutationReport, TestProjectsInfo testProjectsInfo) => new(options, mutationReport, testProjectsInfo);
Expand Down