outware / Scenarios

Human-oriented testing in Swift
Apache License 2.0
20 stars 5 forks source link

Fix test failures being reported in the wrong file #36

Closed sharplet closed 7 years ago

sharplet commented 7 years ago

Commit de3829b156e87fa5066eea51776dd689e5ba9d92 resolved a compiler error caused by passing a String into XCTFail(), which now requires its file parameter to be a StaticString. Unfortunately, removing the file: parameter means that test failures are no longer reported in the correct location in Xcode.

This resolves the issue by updating our API to accept StaticString instead of String, and transforming those static strings into String where necessary to bridge into Quick.