Files
Stephen Celis 3e830b575a Swift Testing support (#3229)
* wip

* wip

* Update Testing.md

* wip

* wip

* wip

* wip

* wip:

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* disable library evolution

* bump

* wip

---------

Co-authored-by: Brandon Williams <mbrandonw@hey.com>
2024-07-22 17:52:04 -07:00

24 lines
493 B
Swift

import XCTest
@available(
*,
deprecated,
message: "This is a test that currently fails but should not in the future."
)
func XCTTODO(_ message: String) {
XCTExpectFailure(message)
}
extension XCUIElement {
func find(
timeout: TimeInterval = 0.3,
filePath: StaticString = #filePath,
line: UInt = #line
) -> XCUIElement {
if !self.waitForExistence(timeout: timeout) {
XCTFail("Failed to find \(self).", file: filePath, line: line)
}
return self
}
}