41 references to TestOutcome
dotnet-aot (41)
parent\dotnet\Commands\Test\MTP\Terminal\TerminalTestReporter.cs (34)
874
TestOutcome
outcome,
898
case
TestOutcome
.Error:
899
case
TestOutcome
.Timeout:
900
case
TestOutcome
.Canceled:
901
case
TestOutcome
.Fail:
904
case
TestOutcome
.Passed:
907
case
TestOutcome
.Skipped:
917
bool isFailed = outcome is
TestOutcome
.Fail or
TestOutcome
.Error or
TestOutcome
.Timeout or
TestOutcome
.Canceled;
945
private static bool IsTestResultVisible(
TestOutcome
outcome, TestResultVisibility visibility) => outcome switch
947
TestOutcome
.Passed => (visibility & TestResultVisibility.Passed) != 0,
948
TestOutcome
.Skipped => (visibility & TestResultVisibility.Skipped) != 0,
949
TestOutcome
.Fail or
TestOutcome
.Error or
TestOutcome
.Timeout or
TestOutcome
.Canceled =>
963
TestOutcome
outcome,
973
TestOutcome
.Error or
TestOutcome
.Fail or
TestOutcome
.Canceled or
TestOutcome
.Timeout => TerminalColor.DarkRed,
974
TestOutcome
.Skipped => TerminalColor.DarkYellow,
975
TestOutcome
.Passed => TerminalColor.DarkGreen,
980
TestOutcome
.Fail or
TestOutcome
.Error => CliCommandStrings.FailedLowercase,
981
TestOutcome
.Skipped => CliCommandStrings.SkippedLowercase,
982
TestOutcome
.Canceled or
TestOutcome
.Timeout => $"{CliCommandStrings.FailedLowercase} ({CliCommandStrings.CancelledLowercase})",
983
TestOutcome
.Passed => CliCommandStrings.PassedLowercase,
1041
FormatErrorMessage(terminal, exceptions,
TestOutcome
.Error, i);
1046
private static void FormatErrorMessage(ITerminal terminal, FlatException[]? exceptions,
TestOutcome
outcome, int index)
1062
else if (outcome ==
TestOutcome
.Fail)
parent\dotnet\Commands\Test\MTP\TestApplicationHandler.cs (7)
782
private static
TestOutcome
ToOutcome(byte? testState) => testState switch
784
TestStates.Passed =>
TestOutcome
.Passed,
785
TestStates.Skipped =>
TestOutcome
.Skipped,
786
TestStates.Failed =>
TestOutcome
.Fail,
787
TestStates.Error =>
TestOutcome
.Error,
788
TestStates.Timeout =>
TestOutcome
.Timeout,
789
TestStates.Cancelled =>
TestOutcome
.Canceled,