Skip to content

Commit b391f8f

Browse files
committed
[xcodeproj] Better lit output
Because Xcode treats the default lit output as error, simply running `lit Tests/Functional` causes build failures in Xcode. For this reason, the script was run with the `-q` quiet parameter. However, this made it difficult to understand why a test failed. This commit borrows a page from LLVM (see: https://github.com/apple/swift-llvm/blob/3ebdbb2c7e5ce577363994fd0aa0f8409bc68490/CMakeLists.txt#L329-L332) and uses `-s` (summarize results), `-v` (verbose), and `--no-progress-bar`. This combination emits diagnostics that are not treated as errors by Xcode, *and* they provide a great deal of detail when tests fail--the best of both worlds!
1 parent 0a33c52 commit b391f8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

XCTest.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
/* Begin PBXLegacyTarget section */
190190
DAA333B51C267AD6000CC115 /* SwiftXCTestFunctionalTests */ = {
191191
isa = PBXLegacyTarget;
192-
buildArgumentsString = "-q Tests/Functional";
192+
buildArgumentsString = "-sv --no-progress-bar Tests/Functional";
193193
buildConfigurationList = DAA333B81C267AD6000CC115 /* Build configuration list for PBXLegacyTarget "SwiftXCTestFunctionalTests" */;
194194
buildPhases = (
195195
);

0 commit comments

Comments
 (0)