62 references to TestArtifactFormat
AnalyzeCiFailure (16)
CiFailureJson.cs (1)
32new ExactEnumConverter<TestArtifactFormat>(),
Models\EvidenceContracts.cs (3)
43public TestArtifactFormat? Format { get; init; } 186public TestArtifactFormat? ResultFormat { get; init; } 221public TestArtifactFormat? ResultFormat { get; init; }
Models\RunSummaryContracts.cs (2)
159public TestArtifactFormat? ResultFormat { get; init; } 190public TestArtifactFormat? ResultFormat { get; init; }
Models\TransientContracts.cs (1)
161public required TestArtifactFormat Format { get; init; }
Models\WorkflowConventionModels.cs (1)
18TestArtifactFormat Format,
TestFailureReader.cs (4)
77var files = Directory.GetFiles(directory, artifact.Format == TestArtifactFormat.Trx ? "*.trx" : "*.json") 82artifact.Format == TestArtifactFormat.Trx 87if (artifact.Format == TestArtifactFormat.Mocha && files.Length > 1) 95if (artifact.Format == TestArtifactFormat.Trx)
TestResultArtifacts.cs (1)
200internal TestArtifactFormat Format => Expectation.Format;
TransientJson.cs (1)
33new StrictEnumConverter<TestArtifactFormat>(),
Workflows\AspireCiWorkflowConventions.cs (2)
61TestArtifactFormat.Trx, 75TestArtifactFormat.Mocha,
AnalyzeCiFailure.Tests (46)
AnalyzeCiFailureAlternateWorkflowTests.cs (21)
23new AlternateWorkflowConventions(TestArtifactFormat.Mocha, TestEvidencePolicy.Required), 53new AlternateWorkflowConventions(TestArtifactFormat.Mocha, TestEvidencePolicy.Required), 67Assert.Equal(TestArtifactFormat.Mocha, source.Format); 94var conventions = new AlternateWorkflowConventions(TestArtifactFormat.Trx, TestEvidencePolicy.Required); 128var conventions = new AlternateWorkflowConventions(TestArtifactFormat.Trx, TestEvidencePolicy.Required); 143var conventions = new AlternateWorkflowConventions(TestArtifactFormat.Trx, TestEvidencePolicy.Required); 180var adapter = new AlternateWorkflowConventions(Enum.Parse<TestArtifactFormat>(format), Enum.Parse<TestEvidencePolicy>(policy)); 217var adapter = new AlternateWorkflowConventions(TestArtifactFormat.Mocha, TestEvidencePolicy.Required); 233var adapter = new AlternateWorkflowConventions(TestArtifactFormat.Mocha, TestEvidencePolicy.Required) 250var adapter = new AlternateWorkflowConventions(TestArtifactFormat.Mocha, TestEvidencePolicy.Required); 260var adapter = new AlternateWorkflowConventions(TestArtifactFormat.Mocha, TestEvidencePolicy.Required); 264TestArtifactFormat.Mocha, 292var adapter = new AlternateWorkflowConventions(TestArtifactFormat.Mocha, TestEvidencePolicy.Required); 305var adapter = new AlternateWorkflowConventions(TestArtifactFormat.Mocha, TestEvidencePolicy.Required); 320new AlternateWorkflowConventions(TestArtifactFormat.Mocha, TestEvidencePolicy.Required), 340? new TestArtifactExpectation("Alternate tests", "alternate-results-2", TestArtifactFormat.Mocha, TestEvidencePolicy.Required) 347var name = plan.Format == TestArtifactFormat.Mocha ? "mocha.json" : "results.trx"; 359plan.Format == TestArtifactFormat.Mocha 395TestArtifactFormat.Trx, 437"Alternate tests", "alternate-results-2-last", TestArtifactFormat.Trx, TestEvidencePolicy.Required)); 463TestArtifactFormat.Trx,
AnalyzeCiFailureBestEffortTests.cs (1)
56new TestArtifactExpectation("Tests", "results", TestArtifactFormat.Trx, TestEvidencePolicy.Required));
AnalyzeCiFailureCSharpRerunTests.cs (1)
72Sources = [new TestResultSource { ArtifactId = 10, ResultFile = "results.trx", Format = TestArtifactFormat.Trx, ExecutionId = "execution" }],
AnalyzeCiFailureEnumTests.cs (2)
43Assert.ThrowsAny<JsonException>(() => CiFailureJson.ToContract<TestArtifactFormat>(value)); 58formats = Enum.GetValues<TestArtifactFormat>(),
AnalyzeCiFailureEvidenceTests.cs (3)
72Assert.Equal(TestArtifactFormat.Trx, bound.ResultFormat); 135Assert.Equal(provenance == "populated" ? TestArtifactFormat.Trx : (TestArtifactFormat?)null, test.ResultFormat);
AnalyzeCiFailureFixtures.cs (2)
117Format = input.ResultFormat ?? TestArtifactFormat.Trx, 278[JsonPropertyName("result_format")] public TestArtifactFormat? ResultFormat { get; init; }
AnalyzeCiFailureMigrationTests.cs (2)
271Sources = [new TestResultSource { ArtifactId = 10, ResultFile = "results.trx", Format = TestArtifactFormat.Trx, ExecutionId = null }], 671Format = TestArtifactFormat.Trx,
AnalyzeCiFailureOverflowTests.cs (1)
263Sources = [new TestResultSource { ArtifactId = 10, ResultFile = "results.trx", Format = TestArtifactFormat.Trx, ExecutionId = null }],
AnalyzeCiFailurePreparationTests.cs (1)
238artifact.Format == AnalyzeCiFailure.TestArtifactFormat.Trx
AnalyzeCiFailureTransientContractTests.cs (3)
33Sources = [new TestResultSource { ArtifactId = 10, ResultFile = "results.trx", Format = TestArtifactFormat.Trx, ExecutionId = "execution" }], 103Sources = [new TestResultSource { ArtifactId = 10, ResultFile = "00001.trx", Format = TestArtifactFormat.Trx, ExecutionId = "execution" }], 160Sources = [new TestResultSource { ArtifactId = 10, ResultFile = "results.trx", Format = TestArtifactFormat.Trx, ExecutionId = $"execution-{index}" }],
AnalyzeCiFailureWorkflowAdapterTests.cs (8)
108Enum.Parse<TestArtifactFormat>(format), 137new TestArtifactExpectation("Optional", "optional", TestArtifactFormat.Trx, TestEvidencePolicy.OptionalDiagnostics), 138new TestArtifactExpectation("Required", "required", TestArtifactFormat.Mocha, TestEvidencePolicy.Required), 163new TestArtifactExpectation("A optional", "optional", TestArtifactFormat.Trx, TestEvidencePolicy.OptionalDiagnostics), 164new TestArtifactExpectation("Z interrupted", "interrupted", TestArtifactFormat.Mocha, TestEvidencePolicy.RequiredForInterruptedExecution), 190invalidFormat ? (TestArtifactFormat)99 : TestArtifactFormat.Trx, 208TestArtifactFormat.Trx,
TestServices\AlternateWorkflowConventions.cs (1)
10internal sealed class AlternateWorkflowConventions(TestArtifactFormat format, TestEvidencePolicy policy) : IGitHubWorkflowConventions