You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Tests/XcbeautifyLibTests/RendererTests/TerminalRendererTests.swift
+10
Original file line number
Diff line number
Diff line change
@@ -207,6 +207,7 @@ final class TerminalRendererTests: XCTestCase {
207
207
#endif
208
208
}
209
209
210
+
#if os(macOS)
210
211
func testExecutedWithSkipped(){
211
212
letinput1="Test Suite 'All tests' failed at 2022-01-15 21:31:49.073."
212
213
letinput2="Executed 56 tests, with 3 test skipped and 2 failures (1 unexpected) in 1.029 (1.029) seconds"
@@ -248,6 +249,7 @@ final class TerminalRendererTests: XCTestCase {
248
249
XCTAssertEqual(parser.summary?.skippedCount,4)
249
250
XCTAssertEqual(parser.summary?.time,4.029)
250
251
}
252
+
#endif
251
253
252
254
func testFailingTest(){}
253
255
@@ -323,15 +325,19 @@ final class TerminalRendererTests: XCTestCase {
323
325
324
326
func testNoCertificate(){}
325
327
328
+
#if os(macOS)
326
329
func testTestCaseWithSpacesPassed(){
327
330
letformatted=noColoredFormatted("Test Case '-[MyProject.MyTestSuite some component, when the disk is full, will display an error]' passed (0.005 seconds).")
328
331
XCTAssertEqual(formatted," ✔ some component, when the disk is full, will display an error (0.005 seconds)")
329
332
}
333
+
#endif
330
334
335
+
#if os(macOS)
331
336
func testTestCaseWithSpacesFailed(){
332
337
letformatted=noColoredFormatted("/Users/jsmith/MyProject/Example.swift:12: error: -[MyProject.MyTestSuite one, when added to two, produces three] : expected to equal <3>, got <4>")
333
338
XCTAssertEqual(formatted," ✖ one, when added to two, produces three, expected to equal <3>, got <4>")
334
339
}
340
+
#endif
335
341
336
342
func testParallelTestCaseFailed(){
337
343
letformatted=noColoredFormatted("Test case 'XcbeautifyLibTests.testBuildTarget()' failed on 'xctest (49438)' (0.131 seconds)")
@@ -494,6 +500,7 @@ final class TerminalRendererTests: XCTestCase {
494
500
495
501
func testTestSuiteStarted(){}
496
502
503
+
#if os(macOS)
497
504
func testTestSuiteAllTestsPassed(){
498
505
letinput="Test Suite 'All tests' passed at 2022-01-15 21:31:49.073."
499
506
@@ -502,7 +509,9 @@ final class TerminalRendererTests: XCTestCase {
502
509
XCTAssertNil(formatted)
503
510
XCTAssertTrue(parser.needToRecordSummary)
504
511
}
512
+
#endif
505
513
514
+
#if os(macOS)
506
515
func testTestSuiteAllTestsFailed(){
507
516
letinput="Test Suite 'All tests' failed at 2022-01-15 21:31:49.073."
508
517
@@ -511,6 +520,7 @@ final class TerminalRendererTests: XCTestCase {
0 commit comments