-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[#425] As a developer, I would like to have KIF setup when I start a new project
- Loading branch information
Showing
16 changed files
with
93 additions
and
53 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
File renamed without changes.
31 changes: 31 additions & 0 deletions
31
{PROJECT_NAME}KIFUITests/Sources/Specs/Application/ApplicationSpec.swift
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// | ||
// ApplicationSpec.swift | ||
// | ||
|
||
import Foundation | ||
import Nimble | ||
import Quick | ||
|
||
final class ApplicationSpec: QuickSpec { | ||
|
||
override func spec() { | ||
|
||
describe("a {PROJECT_NAME} screen") { | ||
|
||
beforeEach { | ||
// Navigate to the testing screen | ||
} | ||
|
||
afterEach { | ||
// Navigate to neutral state | ||
} | ||
|
||
context("when opens") { | ||
|
||
it("shows its UI components") { | ||
self.tester().waitForView(withAccessibilityLabel: "Hello") | ||
} | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
{PROJECT_NAME}KIFUITests/Sources/Utilities/KIF+Swift.swift
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// swiftlint:disable:this file_name | ||
// | ||
// KIF+Swift.swift | ||
// | ||
|
||
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
Empty file.
30 changes: 0 additions & 30 deletions
30
{PROJECT_NAME}UITests/Sources/Specs/Application/ApplicationSpec.swift
This file was deleted.
Oops, something went wrong.