Skip to content
Merged
Show file tree
Hide file tree
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: 1 addition & 1 deletion NGitLab.Mock.Tests/PipelineTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void Test_pipelines_testreport_summary()
var pipeline = project.Pipelines.Add(commit.Sha, JobStatus.Success, user);
pipeline.TestReportsSummary = new TestReportSummary
{
Total = new TestReportSummaryTotals
Total = new TestReportSummary.Totals
{
Time = 60,
Count = 1157,
Expand Down
27 changes: 0 additions & 27 deletions NGitLab/Models/TestCases.cs

This file was deleted.

55 changes: 53 additions & 2 deletions NGitLab/Models/TestReport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace NGitLab.Models;

public class TestReport
public sealed record TestReport
{
[JsonPropertyName("total_time")]
public double TotalTime { get; set; }
Expand All @@ -24,5 +24,56 @@ public class TestReport
public int ErrorCount { get; set; }

[JsonPropertyName("test_suites")]
public IReadOnlyCollection<TestSuites> TestSuites { get; set; }
public IReadOnlyCollection<TestSuite> TestSuites { get; set; }

public sealed record TestSuite
{
[JsonPropertyName("name")]
public string Name { get; set; }

[JsonPropertyName("total_time")]
public double TotalTime { get; set; }

[JsonPropertyName("total_count")]
public int TotalCount { get; set; }

[JsonPropertyName("success_count")]
public int SuccessCount { get; set; }

[JsonPropertyName("failed_count")]
public int FailedCount { get; set; }

[JsonPropertyName("skipped_count")]
public int SkippedCount { get; set; }

[JsonPropertyName("error_count")]
public int ErrorCount { get; set; }

[JsonPropertyName("test_cases")]
public IReadOnlyCollection<TestCase> TestCases { get; set; }
}

public sealed record TestCase
{
[JsonPropertyName("status")]
public string Status { get; set; }

[JsonPropertyName("name")]
public string Name { get; set; }

[JsonPropertyName("classname")]
public string Classname { get; set; }

[JsonPropertyName("file")]
public string File { get; set; }

[JsonPropertyName("execution_time")]
public double ExecutionTime { get; set; }

[JsonPropertyName("system_output")]
public string SystemOutput { get; set; }

[JsonPropertyName("stack_trace")]
public string StrackTrace { get; set; }
}
}
51 changes: 48 additions & 3 deletions NGitLab/Models/TestReportSummary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,56 @@

namespace NGitLab.Models;

public record TestReportSummary
public sealed record TestReportSummary
{
[JsonPropertyName("total")]
public TestReportSummaryTotals Total { get; set; }
public Totals Total { get; set; }

[JsonPropertyName("test_suites")]
public IReadOnlyCollection<TestSuites> TestSuites { get; set; }
public IReadOnlyCollection<TestSuite> TestSuites { get; set; }

public sealed record Totals
{
[JsonPropertyName("time")]
public double Time { get; set; }

[JsonPropertyName("count")]
public int Count { get; set; }

[JsonPropertyName("success")]
public int Success { get; set; }

[JsonPropertyName("failed")]
public int Failed { get; set; }

[JsonPropertyName("skipped")]
public int Skipped { get; set; }

[JsonPropertyName("error")]
public int Error { get; set; }
}

public sealed record TestSuite
{
[JsonPropertyName("name")]
public string Name { get; set; }

[JsonPropertyName("total_time")]
public double TotalTime { get; set; }

[JsonPropertyName("total_count")]
public int TotalCount { get; set; }

[JsonPropertyName("success_count")]
public int SuccessCount { get; set; }

[JsonPropertyName("failed_count")]
public int FailedCount { get; set; }

[JsonPropertyName("skipped_count")]
public int SkippedCount { get; set; }

[JsonPropertyName("error_count")]
public int ErrorCount { get; set; }
}
}
24 changes: 0 additions & 24 deletions NGitLab/Models/TestReportSummaryTotals.cs

This file was deleted.

31 changes: 0 additions & 31 deletions NGitLab/Models/TestSuites.cs

This file was deleted.

115 changes: 63 additions & 52 deletions NGitLab/PublicAPI/net472/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4633,22 +4633,6 @@ NGitLab.Models.TagQuery.Search.set -> void
NGitLab.Models.TagQuery.Sort.get -> string
NGitLab.Models.TagQuery.Sort.set -> void
NGitLab.Models.TagQuery.TagQuery() -> void
NGitLab.Models.TestCases
NGitLab.Models.TestCases.Classname.get -> string
NGitLab.Models.TestCases.Classname.set -> void
NGitLab.Models.TestCases.ExecutionTime.get -> double
NGitLab.Models.TestCases.ExecutionTime.set -> void
NGitLab.Models.TestCases.File.get -> string
NGitLab.Models.TestCases.File.set -> void
NGitLab.Models.TestCases.Name.get -> string
NGitLab.Models.TestCases.Name.set -> void
NGitLab.Models.TestCases.Status.get -> string
NGitLab.Models.TestCases.Status.set -> void
NGitLab.Models.TestCases.StrackTrace.get -> string
NGitLab.Models.TestCases.StrackTrace.set -> void
NGitLab.Models.TestCases.SystemOutput.get -> string
NGitLab.Models.TestCases.SystemOutput.set -> void
NGitLab.Models.TestCases.TestCases() -> void
NGitLab.Models.TestReport
NGitLab.Models.TestReport.ErrorCount.get -> int
NGitLab.Models.TestReport.ErrorCount.set -> void
Expand All @@ -4658,50 +4642,77 @@ NGitLab.Models.TestReport.SkippedCount.get -> int
NGitLab.Models.TestReport.SkippedCount.set -> void
NGitLab.Models.TestReport.SuccessCount.get -> int
NGitLab.Models.TestReport.SuccessCount.set -> void
NGitLab.Models.TestReport.TestReport() -> void
NGitLab.Models.TestReport.TestSuites.get -> System.Collections.Generic.IReadOnlyCollection<NGitLab.Models.TestSuites>
NGitLab.Models.TestReport.TestCase
NGitLab.Models.TestReport.TestCase.Classname.get -> string
NGitLab.Models.TestReport.TestCase.Classname.set -> void
NGitLab.Models.TestReport.TestCase.ExecutionTime.get -> double
NGitLab.Models.TestReport.TestCase.ExecutionTime.set -> void
NGitLab.Models.TestReport.TestCase.File.get -> string
NGitLab.Models.TestReport.TestCase.File.set -> void
NGitLab.Models.TestReport.TestCase.Name.get -> string
NGitLab.Models.TestReport.TestCase.Name.set -> void
NGitLab.Models.TestReport.TestCase.Status.get -> string
NGitLab.Models.TestReport.TestCase.Status.set -> void
NGitLab.Models.TestReport.TestCase.StrackTrace.get -> string
NGitLab.Models.TestReport.TestCase.StrackTrace.set -> void
NGitLab.Models.TestReport.TestCase.SystemOutput.get -> string
NGitLab.Models.TestReport.TestCase.SystemOutput.set -> void
NGitLab.Models.TestReport.TestSuite
NGitLab.Models.TestReport.TestSuite.ErrorCount.get -> int
NGitLab.Models.TestReport.TestSuite.ErrorCount.set -> void
NGitLab.Models.TestReport.TestSuite.FailedCount.get -> int
NGitLab.Models.TestReport.TestSuite.FailedCount.set -> void
NGitLab.Models.TestReport.TestSuite.Name.get -> string
NGitLab.Models.TestReport.TestSuite.Name.set -> void
NGitLab.Models.TestReport.TestSuite.SkippedCount.get -> int
NGitLab.Models.TestReport.TestSuite.SkippedCount.set -> void
NGitLab.Models.TestReport.TestSuite.SuccessCount.get -> int
NGitLab.Models.TestReport.TestSuite.SuccessCount.set -> void
NGitLab.Models.TestReport.TestSuite.TestCases.get -> System.Collections.Generic.IReadOnlyCollection<NGitLab.Models.TestReport.TestCase>
NGitLab.Models.TestReport.TestSuite.TestCases.set -> void
NGitLab.Models.TestReport.TestSuite.TotalCount.get -> int
NGitLab.Models.TestReport.TestSuite.TotalCount.set -> void
NGitLab.Models.TestReport.TestSuite.TotalTime.get -> double
NGitLab.Models.TestReport.TestSuite.TotalTime.set -> void
NGitLab.Models.TestReport.TestSuites.get -> System.Collections.Generic.IReadOnlyCollection<NGitLab.Models.TestReport.TestSuite>
NGitLab.Models.TestReport.TestSuites.set -> void
NGitLab.Models.TestReport.TotalCount.get -> int
NGitLab.Models.TestReport.TotalCount.set -> void
NGitLab.Models.TestReport.TotalTime.get -> double
NGitLab.Models.TestReport.TotalTime.set -> void
NGitLab.Models.TestReportSummary
NGitLab.Models.TestReportSummary.TestSuites.get -> System.Collections.Generic.IReadOnlyCollection<NGitLab.Models.TestSuites>
NGitLab.Models.TestReportSummary.TestSuite
NGitLab.Models.TestReportSummary.TestSuite.ErrorCount.get -> int
NGitLab.Models.TestReportSummary.TestSuite.ErrorCount.set -> void
NGitLab.Models.TestReportSummary.TestSuite.FailedCount.get -> int
NGitLab.Models.TestReportSummary.TestSuite.FailedCount.set -> void
NGitLab.Models.TestReportSummary.TestSuite.Name.get -> string
NGitLab.Models.TestReportSummary.TestSuite.Name.set -> void
NGitLab.Models.TestReportSummary.TestSuite.SkippedCount.get -> int
NGitLab.Models.TestReportSummary.TestSuite.SkippedCount.set -> void
NGitLab.Models.TestReportSummary.TestSuite.SuccessCount.get -> int
NGitLab.Models.TestReportSummary.TestSuite.SuccessCount.set -> void
NGitLab.Models.TestReportSummary.TestSuite.TotalCount.get -> int
NGitLab.Models.TestReportSummary.TestSuite.TotalCount.set -> void
NGitLab.Models.TestReportSummary.TestSuite.TotalTime.get -> double
NGitLab.Models.TestReportSummary.TestSuite.TotalTime.set -> void
NGitLab.Models.TestReportSummary.TestSuites.get -> System.Collections.Generic.IReadOnlyCollection<NGitLab.Models.TestReportSummary.TestSuite>
NGitLab.Models.TestReportSummary.TestSuites.set -> void
NGitLab.Models.TestReportSummary.Total.get -> NGitLab.Models.TestReportSummaryTotals
NGitLab.Models.TestReportSummary.Total.get -> NGitLab.Models.TestReportSummary.Totals
NGitLab.Models.TestReportSummary.Total.set -> void
NGitLab.Models.TestReportSummaryTotals
NGitLab.Models.TestReportSummaryTotals.Count.get -> int
NGitLab.Models.TestReportSummaryTotals.Count.set -> void
NGitLab.Models.TestReportSummaryTotals.Error.get -> int
NGitLab.Models.TestReportSummaryTotals.Error.set -> void
NGitLab.Models.TestReportSummaryTotals.Failed.get -> int
NGitLab.Models.TestReportSummaryTotals.Failed.set -> void
NGitLab.Models.TestReportSummaryTotals.Skipped.get -> int
NGitLab.Models.TestReportSummaryTotals.Skipped.set -> void
NGitLab.Models.TestReportSummaryTotals.Success.get -> int
NGitLab.Models.TestReportSummaryTotals.Success.set -> void
NGitLab.Models.TestReportSummaryTotals.TestReportSummaryTotals() -> void
NGitLab.Models.TestReportSummaryTotals.Time.get -> double
NGitLab.Models.TestReportSummaryTotals.Time.set -> void
NGitLab.Models.TestSuites
NGitLab.Models.TestSuites.ErrorCount.get -> int
NGitLab.Models.TestSuites.ErrorCount.set -> void
NGitLab.Models.TestSuites.FailedCount.get -> int
NGitLab.Models.TestSuites.FailedCount.set -> void
NGitLab.Models.TestSuites.Name.get -> string
NGitLab.Models.TestSuites.Name.set -> void
NGitLab.Models.TestSuites.SkippedCount.get -> int
NGitLab.Models.TestSuites.SkippedCount.set -> void
NGitLab.Models.TestSuites.SuccessCount.get -> int
NGitLab.Models.TestSuites.SuccessCount.set -> void
NGitLab.Models.TestSuites.TestCases.get -> System.Collections.Generic.IReadOnlyCollection<NGitLab.Models.TestCases>
NGitLab.Models.TestSuites.TestCases.set -> void
NGitLab.Models.TestSuites.TestSuites() -> void
NGitLab.Models.TestSuites.TotalCount.get -> int
NGitLab.Models.TestSuites.TotalCount.set -> void
NGitLab.Models.TestSuites.TotalTime.get -> double
NGitLab.Models.TestSuites.TotalTime.set -> void
NGitLab.Models.TestReportSummary.Totals
NGitLab.Models.TestReportSummary.Totals.Count.get -> int
NGitLab.Models.TestReportSummary.Totals.Count.set -> void
NGitLab.Models.TestReportSummary.Totals.Error.get -> int
NGitLab.Models.TestReportSummary.Totals.Error.set -> void
NGitLab.Models.TestReportSummary.Totals.Failed.get -> int
NGitLab.Models.TestReportSummary.Totals.Failed.set -> void
NGitLab.Models.TestReportSummary.Totals.Skipped.get -> int
NGitLab.Models.TestReportSummary.Totals.Skipped.set -> void
NGitLab.Models.TestReportSummary.Totals.Success.get -> int
NGitLab.Models.TestReportSummary.Totals.Success.set -> void
NGitLab.Models.TestReportSummary.Totals.Time.get -> double
NGitLab.Models.TestReportSummary.Totals.Time.set -> void
NGitLab.Models.TimeStats
NGitLab.Models.TimeStats.HumanTimeEstimate.get -> string
NGitLab.Models.TimeStats.HumanTimeEstimate.set -> void
Expand Down
Loading
Loading