Skip to content

Commit

Permalink
Use Spek in TestAppTests
Browse files Browse the repository at this point in the history
  • Loading branch information
onmyway133 committed Jan 11, 2020
1 parent 3f8e884 commit d63a350
Show file tree
Hide file tree
Showing 11 changed files with 1,001 additions and 18 deletions.
16 changes: 16 additions & 0 deletions Example/TestApp/TestApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
D25F741A23CA7C00003CCD9E /* TestAppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TestAppTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
D25F741C23CA7C00003CCD9E /* TestAppTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestAppTests.swift; sourceTree = "<group>"; };
D25F741E23CA7C00003CCD9E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
D25F742B23CA7D0D003CCD9E /* Spek */ = {isa = PBXFileReference; lastKnownFileType = folder; name = Spek; path = ../..; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -61,6 +62,7 @@
D25F73E823CA7BD5003CCD9E = {
isa = PBXGroup;
children = (
D25F742B23CA7D0D003CCD9E /* Spek */,
D25F73F323CA7BD5003CCD9E /* TestApp */,
D25F741B23CA7C00003CCD9E /* TestAppTests */,
D25F73F223CA7BD5003CCD9E /* Products */,
Expand Down Expand Up @@ -146,9 +148,12 @@
buildRules = (
);
dependencies = (
D25F742D23CA7D28003CCD9E /* PBXTargetDependency */,
D25F742023CA7C00003CCD9E /* PBXTargetDependency */,
);
name = TestAppTests;
packageProductDependencies = (
);
productName = TestAppTests;
productReference = D25F741A23CA7C00003CCD9E /* TestAppTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
Expand Down Expand Up @@ -238,6 +243,10 @@
target = D25F73F023CA7BD5003CCD9E /* TestApp */;
targetProxy = D25F741F23CA7C00003CCD9E /* PBXContainerItemProxy */;
};
D25F742D23CA7D28003CCD9E /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
productRef = D25F742C23CA7D28003CCD9E /* Spek */;
};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
Expand Down Expand Up @@ -477,6 +486,13 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCSwiftPackageProductDependency section */
D25F742C23CA7D28003CCD9E /* Spek */ = {
isa = XCSwiftPackageProductDependency;
productName = Spek;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = D25F73E923CA7BD5003CCD9E /* Project object */;
}
25 changes: 7 additions & 18 deletions Example/TestApp/TestAppTests/TestAppTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,16 @@
//

import XCTest
import Spek

class TestAppTests: XCTestCase {

override func 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.
}

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.
spec {
Describe("math") {
It("should add correctly") {
XCTAssertTrue(1 + 1 == 2)
}
}
}
}

}
File renamed without changes.
4 changes: 4 additions & 0 deletions Spek.xcodeproj/GeneratedModuleMap/SpekHelper/module.modulemap
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module SpekHelper {
umbrella "/Users/khoa/XcodeProject2/Spek/Sources/SpekHelper/include"
export *
}
25 changes: 25 additions & 0 deletions Spek.xcodeproj/SpekHelper_Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
25 changes: 25 additions & 0 deletions Spek.xcodeproj/SpekTests_Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
25 changes: 25 additions & 0 deletions Spek.xcodeproj/Spek_Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
Loading

0 comments on commit d63a350

Please sign in to comment.