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