37 references to TestOutcome
dotnet-aot (37)
parent\dotnet\Commands\Test\MTP\Terminal\TerminalTestReporter.cs (30)
724
TestOutcome
outcome,
748
case
TestOutcome
.Error:
749
case
TestOutcome
.Timeout:
750
case
TestOutcome
.Canceled:
751
case
TestOutcome
.Fail:
754
case
TestOutcome
.Passed:
757
case
TestOutcome
.Skipped:
784
private bool IsTestResultVisible(
TestOutcome
outcome) => outcome switch
786
TestOutcome
.Passed => (_options.ShowTestResults & TestResultVisibility.Passed) != 0,
787
TestOutcome
.Skipped => (_options.ShowTestResults & TestResultVisibility.Skipped) != 0,
788
TestOutcome
.Fail or
TestOutcome
.Error or
TestOutcome
.Timeout or
TestOutcome
.Canceled =>
801
TestOutcome
outcome,
811
TestOutcome
.Error or
TestOutcome
.Fail or
TestOutcome
.Canceled or
TestOutcome
.Timeout => TerminalColor.DarkRed,
812
TestOutcome
.Skipped => TerminalColor.DarkYellow,
813
TestOutcome
.Passed => TerminalColor.DarkGreen,
818
TestOutcome
.Fail or
TestOutcome
.Error => CliCommandStrings.FailedLowercase,
819
TestOutcome
.Skipped => CliCommandStrings.SkippedLowercase,
820
TestOutcome
.Canceled or
TestOutcome
.Timeout => $"{CliCommandStrings.FailedLowercase} ({CliCommandStrings.CancelledLowercase})",
821
TestOutcome
.Passed => CliCommandStrings.PassedLowercase,
879
FormatErrorMessage(terminal, exceptions,
TestOutcome
.Error, i);
884
private static void FormatErrorMessage(ITerminal terminal, FlatException[]? exceptions,
TestOutcome
outcome, int index)
900
else if (outcome ==
TestOutcome
.Fail)
parent\dotnet\Commands\Test\MTP\TestApplicationHandler.cs (7)
656
private static
TestOutcome
ToOutcome(byte? testState) => testState switch
658
TestStates.Passed =>
TestOutcome
.Passed,
659
TestStates.Skipped =>
TestOutcome
.Skipped,
660
TestStates.Failed =>
TestOutcome
.Fail,
661
TestStates.Error =>
TestOutcome
.Error,
662
TestStates.Timeout =>
TestOutcome
.Timeout,
663
TestStates.Cancelled =>
TestOutcome
.Canceled,