-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Move events infrastructure to the core #106
Conversation
We should also add a GherkinParsed event or similar |
8034e82
to
3df4549
Compare
@danascheider @brasmusson @tooky this PR craves your attention! Seriously, it would be good to get this merged (and cucumber/cucumber-ruby#973 which leans on it) as it's a fairly big lump and the longer we leave it the harder it will be to do. Would it make it easier to read if I tidy up the commits? |
I agree. I haven't witnessed these failures myself I don't think. Can you raise an issue with the travis output in them @danascheider? I can't see how to dig out the original failure for a build that's been rebuilt. |
Sure, at first I thought it was just a random hiccup in Travis and not a problem with Cucumber and JRuby, so I didn't see it as necessary. I'll create an issue and then next time the failure comes up, I'll paste the error message into the issue. And if it doesn't come up, so much the better. |
You can't remember which test it was that failed, can you? |
Yes, it was the very last one in both cases. |
You mean the |
Yes, @brasmusson - it's the slow one |
@@ -6,5 +6,5 @@ | |||
formatters << Coveralls::SimpleCov::Formatter | |||
end | |||
|
|||
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[*formatters] | |||
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(formatters) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change does not work with coveralls v0.8.2, the result is a "initialize': wrong number of arguments (1 for 0) (ArgumentError)
". I happen to have coveralls v0.8.2 installed as it both fulfils the cucmber-ruby(-core) requirement of '~>0.7'
and the gherkin requirement of '~> 0.8', '< 0.8.8'
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right - this change doesn't belong in here. We should sort this out in the master branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted in cf7e975.
@test_cases = Test::Result::Summary.new | ||
@test_steps = Test::Result::Summary.new | ||
subscribe_to(event_bus) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this class is connected directly to the event_bus
then it need to filter out the notification from the executed hooks
, since they are not included in the step counts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 7bbae8b
I took the step to merge this (both to make progress on this and to be able to rebase cucumber/cucumber-ruby#977 with the event bus in the core). Two review comment are not fixed (#106 (comment) and #106 (comment)), not because I reject them, but more with the comment "yes, there are duplication here, but I do not see the simple refactoring to fix that, so I choose not to spend time on working on them, they can be improved on the master branch". |
Thanks for all the scrutiny and tidy-up work @danascheider and @brasmusson 👏 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Rationale
We're using events heavily in the front-end now, and it makes more sense to have both the
Events::Bus
plumbing and the firing of events come straight out of the core. As a bonus, we remove the conceptual overhead of a "report".TODO: