diff --git a/Sources/XCTestDynamicOverlay/XCTExpectFailure.swift b/Sources/XCTestDynamicOverlay/XCTExpectFailure.swift index 916c36e7..ad32816e 100644 --- a/Sources/XCTestDynamicOverlay/XCTExpectFailure.swift +++ b/Sources/XCTestDynamicOverlay/XCTExpectFailure.swift @@ -3,6 +3,7 @@ import Foundation #if DEBUG && canImport(ObjectiveC) /// Instructs the test to expect a failure in an upcoming assertion, with options to customize /// expected failure checking and handling. + /// /// - Parameters: /// - failureReason: An optional string that describes why the test expects a failure. /// - enabled: A Boolean value that indicates whether the test checks for the expected failure. @@ -59,6 +60,7 @@ import Foundation /// Instructs the test to expect a failure in an upcoming assertion, with options to customize /// expected failure checking and handling. + /// /// - Parameters: /// - failureReason: An optional string that describes why the test expects a failure. /// - enabled: A Boolean value that indicates whether the test checks for the expected failure. @@ -107,7 +109,6 @@ import Foundation XCTExpectFailureWithOptions(failureReason, options) } - public struct _XCTIssue: /*CustomStringConvertible, */Equatable, Hashable { public var type: IssueType public var compactDescription: String diff --git a/Tests/XCTestDynamicOverlayTests/TestHelpers.swift b/Tests/XCTestDynamicOverlayTests/TestHelpers.swift index 2d6df0d1..7ca2c0b9 100644 --- a/Tests/XCTestDynamicOverlayTests/TestHelpers.swift +++ b/Tests/XCTestDynamicOverlayTests/TestHelpers.swift @@ -5,7 +5,7 @@ func MyXCTFail(_ message: String) { XCTFail(message) } -#if canImport(ObjectiveC) +#if DEBUG && canImport(ObjectiveC) func MyXCTExpectFailure( _ failureReason: String, enabled: Bool = true,