-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Pass all messages through the event bus #1865
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
Changes from all commits
3f75f78
08f5bc5
42520e0
6933899
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -185,12 +185,16 @@ def set_encoding | |
| def report | ||
| return @report if @report | ||
|
|
||
| reports = [summary_report, global_hooks_summary_report] + formatters | ||
| reports = [message_builder, summary_report, global_hooks_summary_report] + formatters | ||
| reports << fail_fast_report if @configuration.fail_fast? | ||
| reports << publish_banner_printer unless @configuration.publish_quiet? | ||
| @report ||= Formatter::Fanout.new(reports) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I start to think that what we see here is technical debt from the time before we started to use event i CucumberRuby. Then the formatters had a lot of methods Now when we are using events what is important is that the right formatters are created. When they are created they register for the events they are interested in on the event bus (they get the Configuration object which has the event bus passed to the initialize method). Then the get event from the event bus and do their job. So the remaining purpose of the code here (which is call from line 77 |
||
| end | ||
|
|
||
| def message_builder | ||
| @message_builder ||= Formatter::MessageBuilder.new(@configuration) | ||
| end | ||
|
|
||
| def summary_report | ||
| @summary_report ||= Core::Report::Summary.new(@configuration.event_bus) | ||
| end | ||
|
|
||
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.
Can we remove this out into a separate PR targeting the v11 migration branch