Skip to content

Make the Summary Printer into a plugin #828

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 4 commits into from
Mar 18, 2015

Conversation

brasmusson
Copy link
Contributor

This PR turns the summary printing into a plugin, as discussed on the mailing list. Two built-in summary printer plugins are created,

  • default_summary which basically gives the same summary output as today, and
  • null_summary which gives no output at al

Inspired by Cucumber-Ruby, the default_summary is extended (compared to the current behaviour), with the listing of failed scenarios. Or to be precise the listing of the scenarios that makes the exit code non-zero, that is in strict mode also undefined and pending scenarios are listed.

The different supported plugin types are separated into different categories internally, to be able to detect when to add default formatter. The current code is not entirely correct, if a StepDefinitionsReporter is added when the runtime options first is parsed (and not Formatter/Reporter plugin is also added), no Formatter/Reporter will exist during the execution.

To be able to load plugin classes by full class name on Jython the
Thread.currentThread().contextClassLoader need to be set before calling
cucumber.api.cli.Main
@aslakhellesoy
Copy link
Contributor

LGTM!

@brasmusson brasmusson merged commit fd317c3 into cucumber:master Mar 18, 2015
brasmusson added a commit that referenced this pull request Mar 18, 2015
@lock
Copy link

lock bot commented Oct 25, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants