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