Skip to content

Commit

Permalink
Fix build bug missing #if canImport(XCTest)
Browse files Browse the repository at this point in the history
  • Loading branch information
eonist committed Sep 21, 2023
1 parent 2770f99 commit 2af0987
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Sources/TestRunner/protocol/SceneRunnerKind.swift
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

0 comments on commit 2af0987

Please sign in to comment.