11 writes to Tests
AnalyzeCiFailure.Tests (11)
AnalyzeCiFailureCSharpRerunTests.cs (1)
79
Tests
= [new ProposedTestDecision { Ref = "test-1", Classification = TestClassification.TransientInfrastructure, Reason = "Runner prerequisite failed" }],
AnalyzeCiFailureFixtures.cs (2)
41
Tests
= [],
236
Tests
= decisions, Causes = causes,
AnalyzeCiFailureMigrationTests.cs (3)
47
Tests
= [new ProposedTestDecision { Ref = "test-1", Classification = TestClassification.Flaky, Reason = "Timeout" }],
160
Tests
= failures.Select(test => new ProposedTestDecision { Ref = test.Ref, Classification = TestClassification.Flaky, Reason = "Timeout" }).ToImmutableArray(),
521
Tests
= evidence.TestEvidence.Failures.Select(test => new ProposedTestDecision { Ref = test.Ref, Classification = TestClassification.Flaky, Reason = "Current timeout" }).ToImmutableArray(),
AnalyzeCiFailureOverflowTests.cs (1)
270
Tests
= evidence.TestEvidence.Failures.Select(test => new ProposedTestDecision
AnalyzeCiFailureTransientContractTests.cs (4)
110
Tests
= [new ProposedTestDecision { Ref = "test-1", Classification = TestClassification.CodeIssue, Reason = "Deterministic" }],
142
"unknown-test" => proposal with {
Tests
= [new ProposedTestDecision { Ref = "unknown", Classification = TestClassification.Flaky, Reason = "Decision" }] },
165
Tests
= failures.Take(3).Select(test => new ProposedTestDecision
259
Assert.Equal(proposal, TransientJson.Read<AnalysisProposal>(TransientJson.Write(proposal)) with { Jobs = proposal.Jobs,
Tests
= proposal.Tests, Causes = proposal.Causes });
9 references to Tests
AnalyzeCiFailure (8)
AnalysisValidator.cs (8)
33
if (proposal.Jobs.IsDefault || proposal.
Tests
.IsDefault || proposal.Causes.IsDefault)
37
if (proposal.Jobs.Any(job => job is null) || proposal.
Tests
.Any(test => test is null) || proposal.Causes.Any(cause => cause is null))
47
if (proposal.
Tests
.Length != evidence.TestEvidence.Failures.Length ||
48
proposal.
Tests
.Select(test => test.Ref).Distinct(StringComparer.Ordinal).Count() != proposal.
Tests
.Length ||
49
proposal.
Tests
.Any(test => !evidence.TestEvidence.Failures.Any(collected => collected.Ref == test.Ref)))
52
$" (expected={evidence.TestEvidence.Failures.Length}, proposed={proposal.
Tests
.Length}); " +
67
var boundTests = proposal.
Tests
.Select(decision =>
AnalyzeCiFailure.Tests (1)
AnalyzeCiFailureTransientContractTests.cs (1)
259
Assert.Equal(proposal, TransientJson.Read<AnalysisProposal>(TransientJson.Write(proposal)) with { Jobs = proposal.Jobs, Tests = proposal.
Tests
, Causes = proposal.Causes });