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