kylef / Spectre

BDD Framework and test runner for Swift projects and playgrounds
BSD 2-Clause "Simplified" License
404 stars 41 forks source link

Build XCTest extensions on linux #44

Closed elliottwilliams closed 4 years ago

elliottwilliams commented 4 years ago

Nowadays, swift-corelibs-xctest exists, so it should be possible to use Spectre from XCTest on Linux. This change removes the #if guards around XCTest extensions, with the exception of some Xcode 12+ APIs that have not yet made it upstream.

Testing done

Builds and tests on a linux machine using the official Swift docker images:

$ docker pull swift
$ docker run -itv $PWD:/code swift swift test --package-path /code
kylef commented 4 years ago

Thanks @elliottwilliams that's awesome!

kylef commented 4 years ago

I've released this in Spectre 0.9.2

elliottwilliams commented 4 years ago

Sweet! Thanks for the quick release turnaround 🙂