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

Only include executed scenarios and steps from outlines in the JSON output #704

Conversation

brasmusson
Copy link
Contributor

Do not include the Scenario Outline and Examples given as information before the execution of the instantiated scenarios from the outline. This unified the JSON output from Cucumber-JVM regardless of the feature is executed by the command line runner, the JUnit runner of the TestNG runner. The JUnit runner differs from the other by not sending the Scenario Outline and Examples as information to the formatters before executing the instantiated scenarios from the outline, so this PR only affects the output from the command line runner and the TestNG runner.

That the JSON output currently differs depending on which runner was used is confusing both for users (see for instance this mailing list post), and tool developer (for instance the Jenkins Cucumber Report plugin, see this discussion on a plugin issue starting here or this discussion on a gherkin issue starting here).

Fixes #681 and fixes cucumber/gherkin#299, it most likely fix also any remaining Cucumber-JVM part of cucumber/gherkin#165.

Do not include the Scenario Outline and Examples given as information
before the execution of the instantiated scenarios from the outline.
This unified the JSON output from Cucumber-JVM regardless of the feature
is executed by the command line runner, the JUnit runner of the TestNG
runner. The JUnit runner differs from the other by not sending the
Scenario Outline and Examples as information to the formatters before
executing the instantiated scenarios from the outline, so this commit
only affects the output from the command line runner and the TestNG
runner.
@aslakhellesoy aslakhellesoy merged commit 515466e into cucumber:master Jun 26, 2014
aslakhellesoy added a commit that referenced this pull request Jun 26, 2014
@brasmusson brasmusson deleted the jsonformatter-only-executed-scenarios branch June 28, 2014 08:33
@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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with Cucumber JSon reports
2 participants