Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Preemptively add XCTest.xcworkspace
#43 will add a dependency
between swift-corelibs-xctest and swift-corelibs-foundation. On OS X, this
will also necessitate an Xcode workspace that references both XCTest
and Foundation .xcodeproj's.

To prevent CI from breaking when #43 is landed, preemptively add an Xcode
workspace. Before landing #43, the Swift build script will be modified to
build XCTest.xcworkspace, not XCTest.xcodeproj.
  • Loading branch information
modocache committed Mar 5, 2016
1 parent 824862a commit a24d5fc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,4 +1,5 @@
.DS_Store
xcuserdata
*.xcscmblueprint
.build/
Output/
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -48,10 +48,10 @@ To run the tests on Linux, use the `--test` option:
./build_script.py --swiftc="/swift/usr/bin/swiftc" --test
```

To run the tests on OS X, build and run the `SwiftXCTestFunctionalTests` target in the Xcode project. You may also run them via the command line:
To run the tests on OS X, build and run the `SwiftXCTestFunctionalTests` target in the Xcode workspace. You may also run them via the command line:

```
xcodebuild -project XCTest.xcodeproj -scheme SwiftXCTestFunctionalTests
xcodebuild -workspace XCTest.xcworkspace -scheme SwiftXCTestFunctionalTests
```

You may add tests for XCTest by including them in the `Tests/Functional/` directory. For an example, see `Tests/Functional/SingleFailingTestCase`.
Expand Down
7 changes: 7 additions & 0 deletions XCTest.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a24d5fc

Please sign in to comment.