This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
platform :ios, '9.0' | |
target 'MyAwesomeProject' do | |
use_frameworks! | |
target 'MyAwesomeProjectTests' do | |
inherit! :search_paths | |
pod 'Quick' | |
pod 'Nimble' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Uncomment this line to define a global platform for your project | |
# platform :ios, '9.0' | |
target 'SetupTestingForiOSProject' do | |
# Comment this line if you're not using Swift and don't want to use dynamic frameworks | |
use_frameworks! | |
# Pods for SetupTestingForiOSProject | |
target 'SetupTestingForiOSProjectTests' do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import KIF | |
class HomeTests : KIFTestCase { | |
// test method name MUST have the prefix `test` | |
// for example: testA, testB, testLogin, ect... | |
func testHomeScreen() { | |
visitHomeScreen() | |
tapOn("button") | |
expectToSee("Some random label") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import KIF | |
extension XCTestCase { | |
func tester(file : String = #file, _ line : Int = #line) -> KIFUITestActor { | |
return KIFUITestActor(inFile: file, atLine: line, delegate: self) | |
} | |
func system(file : String = #file, _ line : Int = #line) -> KIFSystemTestActor { | |
return KIFSystemTestActor(inFile: file, atLine: line, delegate: self) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <KIF/KIF.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <KIF/KIF.h> | |
@interface HomeTests : KIFTestCase | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "HomeTests.h" | |
@implementation HomeTests | |
#pragma mark - tests | |
// test method name MUST have the prefix `test` | |
// for example: testA, testB, testLogin, ect... | |
- (void)testHomeScreen { | |
[self visitHomeScreen]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Specta/Specta.h> | |
#import <Expecta/Expecta.h> | |
SpecBegin(MyFirstSpec) | |
describe(@"first test", ^{ | |
it(@"should pass", ^{ | |
expect(1).to.equal(1); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Quick | |
import Nimble | |
class MyFirstSpec : QuickSpec { | |
override func spec() { | |
super.spec() | |
describe("first test") { | |
it("should pass") { | |
expect(1).to(equal(1)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# command 1: initialize git | |
git init | |
# command 2: add all files to git staging | |
git add . | |
# command 3: create your first commit with message "create project" | |
git commit -m "creat project" |