41 references to TestOutcome
dotnet-aot (41)
parent\dotnet\Commands\Test\MTP\Terminal\TerminalTestReporter.cs (34)
881
TestOutcome
outcome,
905
case
TestOutcome
.Error:
906
case
TestOutcome
.Timeout:
907
case
TestOutcome
.Canceled:
908
case
TestOutcome
.Fail:
911
case
TestOutcome
.Passed:
914
case
TestOutcome
.Skipped:
924
bool isFailed = outcome is
TestOutcome
.Fail or
TestOutcome
.Error or
TestOutcome
.Timeout or
TestOutcome
.Canceled;
953
private static bool IsTestResultVisible(
TestOutcome
outcome, TestResultVisibility visibility) => outcome switch
955
TestOutcome
.Passed => (visibility & TestResultVisibility.Passed) != 0,
956
TestOutcome
.Skipped => (visibility & TestResultVisibility.Skipped) != 0,
957
TestOutcome
.Fail or
TestOutcome
.Error or
TestOutcome
.Timeout or
TestOutcome
.Canceled =>
971
TestOutcome
outcome,
982
TestOutcome
.Error or
TestOutcome
.Fail or
TestOutcome
.Canceled or
TestOutcome
.Timeout => TerminalColor.DarkRed,
983
TestOutcome
.Skipped => TerminalColor.DarkYellow,
984
TestOutcome
.Passed => TerminalColor.DarkGreen,
989
TestOutcome
.Fail or
TestOutcome
.Error => CliCommandStrings.FailedLowercase,
990
TestOutcome
.Skipped => CliCommandStrings.SkippedLowercase,
991
TestOutcome
.Canceled or
TestOutcome
.Timeout => $"{CliCommandStrings.FailedLowercase} ({CliCommandStrings.CancelledLowercase})",
992
TestOutcome
.Passed => CliCommandStrings.PassedLowercase,
1050
FormatErrorMessage(terminal, exceptions,
TestOutcome
.Error, i);
1055
private static void FormatErrorMessage(ITerminal terminal, FlatException[]? exceptions,
TestOutcome
outcome, int index)
1071
else if (outcome ==
TestOutcome
.Fail)
parent\dotnet\Commands\Test\MTP\TestApplicationHandler.cs (7)
792
private static
TestOutcome
ToOutcome(byte? testState) => testState switch
794
TestStates.Passed =>
TestOutcome
.Passed,
795
TestStates.Skipped =>
TestOutcome
.Skipped,
796
TestStates.Failed =>
TestOutcome
.Fail,
797
TestStates.Error =>
TestOutcome
.Error,
798
TestStates.Timeout =>
TestOutcome
.Timeout,
799
TestStates.Cancelled =>
TestOutcome
.Canceled,