37 references to TestOutcome
dotnet-aot (37)
parent\dotnet\Commands\Test\MTP\Terminal\TerminalTestReporter.cs (30)
757
TestOutcome
outcome,
781
case
TestOutcome
.Error:
782
case
TestOutcome
.Timeout:
783
case
TestOutcome
.Canceled:
784
case
TestOutcome
.Fail:
787
case
TestOutcome
.Passed:
790
case
TestOutcome
.Skipped:
818
private static bool IsTestResultVisible(
TestOutcome
outcome, TestResultVisibility visibility) => outcome switch
820
TestOutcome
.Passed => (visibility & TestResultVisibility.Passed) != 0,
821
TestOutcome
.Skipped => (visibility & TestResultVisibility.Skipped) != 0,
822
TestOutcome
.Fail or
TestOutcome
.Error or
TestOutcome
.Timeout or
TestOutcome
.Canceled =>
836
TestOutcome
outcome,
846
TestOutcome
.Error or
TestOutcome
.Fail or
TestOutcome
.Canceled or
TestOutcome
.Timeout => TerminalColor.DarkRed,
847
TestOutcome
.Skipped => TerminalColor.DarkYellow,
848
TestOutcome
.Passed => TerminalColor.DarkGreen,
853
TestOutcome
.Fail or
TestOutcome
.Error => CliCommandStrings.FailedLowercase,
854
TestOutcome
.Skipped => CliCommandStrings.SkippedLowercase,
855
TestOutcome
.Canceled or
TestOutcome
.Timeout => $"{CliCommandStrings.FailedLowercase} ({CliCommandStrings.CancelledLowercase})",
856
TestOutcome
.Passed => CliCommandStrings.PassedLowercase,
914
FormatErrorMessage(terminal, exceptions,
TestOutcome
.Error, i);
919
private static void FormatErrorMessage(ITerminal terminal, FlatException[]? exceptions,
TestOutcome
outcome, int index)
935
else if (outcome ==
TestOutcome
.Fail)
parent\dotnet\Commands\Test\MTP\TestApplicationHandler.cs (7)
700
private static
TestOutcome
ToOutcome(byte? testState) => testState switch
702
TestStates.Passed =>
TestOutcome
.Passed,
703
TestStates.Skipped =>
TestOutcome
.Skipped,
704
TestStates.Failed =>
TestOutcome
.Fail,
705
TestStates.Error =>
TestOutcome
.Error,
706
TestStates.Timeout =>
TestOutcome
.Timeout,
707
TestStates.Cancelled =>
TestOutcome
.Canceled,