Skip to content

Commit

Permalink
Fix test for Swift 5.10
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Jun 13, 2024
1 parent fee62a0 commit 8af9c5c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Tests/CartonCommandTests/TestCommandTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ final class TestCommandTests: XCTestCase {
["carton", "test", "--environment", "node"], packageDirectory: packageDirectory.asURL
)
try result.checkNonZeroExit()
let output = try result.utf8stderrOutput()
XCTAssertTrue(output.contains("Test Suite 'All tests' passed"))
let stdout = try result.utf8Output()
let stderr = try result.utf8stderrOutput()
let expectedContent = "Test Suite 'All tests' passed"
// SwiftPM changed the output destination of SwiftPM Plugin in 6.0
XCTAssertTrue(stdout.contains(expectedContent) || stderr.contains(expectedContent))
}
}

Expand Down

0 comments on commit 8af9c5c

Please sign in to comment.