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

Pending tests should be printed when running under XCTest #371

Merged
merged 3 commits into from
Mar 22, 2016

Conversation

briancroom
Copy link
Contributor

This modifies the way that Cedar integrates with the XCTest runner such that pending tests aren't ignored entirely, but are still made known to the example reporters. This results in the pending test count and summary info being included in Cedar's test output. The pending tests aren't exposed to XCTest, however, since there is no way to represent the "pending" state in its framework.

This addresses #303 and https://www.pivotaltracker.com/story/show/99707426.

(Inspired by a recent conversation with @pivotal/team-cedar, I also swapped the ad-hoc Cedar fake in CDRXCTestSuiteSpec with a full-fledged test double class.)

This means that the pending tests, although not executed, will still be
given to the reporter, so the pending test summary info can be printed.
Note that the pending tests aren't exposed to the XCTest runner at all.
@briancroom
Copy link
Contributor Author

@pivotal-misa-sakamoto I encountered this issue most recently with you, it would be great if you could give it a try and see if it resolves the issue of pending tests not being reflected in the summary output.

Same goes for @idoru and @tjarratt if you've got test bundle projects going right now :)

@tjarratt tjarratt changed the title Print pending tests Pending tests should be printed when running under XCTest Feb 1, 2016
@idoru
Copy link
Contributor

idoru commented Mar 22, 2016

Sorry this sat here so long; I finally had some spare time to test it out today.

I didn't see any reason not to merge this, since our lack of reporting pending tests has been broken for a long time (#303).

@idoru idoru closed this Mar 22, 2016
@idoru idoru reopened this Mar 22, 2016
idoru added a commit that referenced this pull request Mar 22, 2016
Pending tests should be printed when running under XCTest
@idoru idoru merged commit 1273d9b into cedarbdd:master Mar 22, 2016
@idoru
Copy link
Contributor

idoru commented Mar 22, 2016

LOL totally hamfisted that. Merged anyway since the checks had passed previously before I accidentally closed the PR. Thanks for the fixing this, @briancroom

@briancroom
Copy link
Contributor Author

👍 Thanks for taking a look and doing the honors @idoru!

@briancroom briancroom deleted the print_pending_tests branch March 22, 2016 21:13
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.

2 participants