-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build bug missing #if canImport(XCTest)
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import XCTest | ||
|
||
#if canImport(XCTest) | ||
// Public protocol that defines the requirements for a SceneRunner | ||
public protocol SceneRunnerKind { | ||
// Method to run a specific scene | ||
func run(scene: SceneKind) | ||
|
||
// Property to hold the application under test | ||
var app: XCUIApplication { get set } | ||
|
||
// Array to hold the different types of scenes that can be run | ||
var scenes: [SceneKind.Type] { get } | ||
|
||
// Property to hold the completion handler for the SceneRunner | ||
var complete: SceneRunner.Completed { get } | ||
|
||
// Optional property to hold the test case if one is associated with the SceneRunner | ||
var testCase: XCTestCase? { get } | ||
} | ||
#endif | ||
#endif |