Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build XCTest extensions on linux #44

Merged
merged 6 commits into from Nov 18, 2020
Merged

Conversation

elliottwilliams
Copy link
Contributor

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
Copy link
Owner

kylef commented Nov 18, 2020

Thanks @elliottwilliams that's awesome!

@kylef kylef merged commit 3a475c2 into kylef:master Nov 18, 2020
@kylef
Copy link
Owner

kylef commented Nov 18, 2020

I've released this in Spectre 0.9.2

@elliottwilliams
Copy link
Contributor Author

Sweet! Thanks for the quick release turnaround 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants