mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
d22ab944c4
Resolves #695 Previously, macOS unit test targets would appear to have no test host. By manually setting the test host in Xcode on the fixture project, I discovered that macOS test hosts require an additional `Contents/MacOS/` path component before the product name. We can manually detect the platform when setting the test host and as such generate the host correctly for macOS unit test targets.
27 lines
777 B
Swift
27 lines
777 B
Swift
import XCTest
|
|
|
|
class TestProjectTests: XCTestCase {
|
|
|
|
override func setUp() {
|
|
super.setUp()
|
|
// Put setup code here. This method is called before the invocation of each test method in the class.
|
|
}
|
|
|
|
override func tearDown() {
|
|
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
|
super.tearDown()
|
|
}
|
|
|
|
func testExample() {
|
|
// This is an example of a functional test case.
|
|
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
|
}
|
|
|
|
func testPerformanceExample() {
|
|
// This is an example of a performance test case.
|
|
measure {
|
|
// Put the code you want to measure the time of here.
|
|
}
|
|
}
|
|
}
|