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

Don't require a test case subclass #79

Merged
merged 7 commits into from
Nov 7, 2018
Merged

Don't require a test case subclass #79

merged 7 commits into from
Nov 7, 2018

Conversation

stephencelis
Copy link
Member

Fixes #71.

Hoping that a serial queue makes things reliable.

tookSnapshot.fulfill()
}
let result = XCTWaiter.wait(for: [tookSnapshot], timeout: timeout)
switch result {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to manually fail based on the XCTWaiter result now.

tookSnapshot.fulfill()
}
#if os(Linux)
self.waitForExpectations(timeout: timeout)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm hoping this doesn't fail. Linux got the additional APIs in recent snapshots...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dang, merged less than a week ago: apple/swift-corelibs-xctest#228

Guess we can't merge and support Linux unless we lock Linux to a recent snapshot.

Copy link
Member

@mbrandonw mbrandonw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We decided to support both subclassless asserts (for iOS) and subclass asserts (for Linux) until Linux catches up with the XCTest support.

@mbrandonw mbrandonw merged commit 73c972b into master Nov 7, 2018
@mbrandonw mbrandonw deleted the subclassless branch November 7, 2018 16:11
@Killectro
Copy link

Bless you both @stephencelis @mbrandonw, very excited to give this a test!

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

3 participants