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