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

Undo previous patches (#17) #18

Merged
merged 2 commits into from
May 4, 2011
Merged

Undo previous patches (#17) #18

merged 2 commits into from
May 4, 2011

Conversation

DataWraith
Copy link
Contributor

I'm sorry, I should have tested this more thoroughly. So much for whipping up a quick fix. :(

Rspec's exit code does not differentiate between a failing spec and failing to run the specs. Kind of obvious in retrospect...

Johannes Holzfuß added 2 commits May 4, 2011 15:37
This reverts commit 2d22fc4. Rspec does
not differentiate between failed tests and failing to run the tests.
This reverts commit edf0d0e. Rspec does
not differentiate between failing tests and failing to run the tests.
rymai pushed a commit that referenced this pull request May 4, 2011
Undo previous patches (#17): it was not tested (very bad!! ^^), and it actually didn't work as expected.
@rymai rymai merged commit 9e64728 into guard:master May 4, 2011
@rymai
Copy link
Member

rymai commented May 4, 2011

Ok, no problem. Do you think of an alternative?

@DataWraith
Copy link
Contributor Author

I've been thinking about it, but without changes to rspec, there is only one way I can think of. It's a little ugly though, because global state would be introduced:

Basically we would need to set a flag in the formatter (probably with a new #start method that gets called once rspec starts running the specs) and then check the return code. If rspec failed and we did not set the flag, then rspec failed before loading the specs. If rspec failed and we did set the flag, then one or more of the specs failed.

I'll ask on the rspec mailing list if there's another way.

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