-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
cucumber-core: Use the docstring content type in the json formatter. #1265
Conversation
@rjwittams Thank you for submitting a PR. Unfortunately the build fails due to a compilation error in cucumber-core: [ERROR] COMPILATION ERROR : |
I'm not sure if this is an automatic reply. It fails because the cucumber mono repo needs to apply its PR before this will work, as stated above. I didn't want to mess about with the versions in pom.xml before it made sense. |
@@ -678,6 +678,68 @@ public void should_format_scenario_with_a_step_with_a_doc_string() throws Throwa | |||
} | |||
|
|||
@Test | |||
public void should_format_scenario_with_a_step_with_a_doc_string2() throws Throwable { |
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.
I'd suggest should_format_scenario_with_a_step_with_a_doc_string_and_content_type
Sorry, I did have it at that name before, but was fighting with the json pretty formatter, and recreated the method a few times. Will update.
… On 22 Oct 2017, at 12:37, M.P. Korstanje ***@***.***> wrote:
@mpkorstanje commented on this pull request.
In core/src/test/java/cucumber/runtime/formatter/JSONFormatterTest.java <#1265 (comment)>:
> @@ -678,6 +678,68 @@ public void should_format_scenario_with_a_step_with_a_doc_string() throws Throwa
}
@test
+ public void should_format_scenario_with_a_step_with_a_doc_string2() throws Throwable {
I'd suggest should_format_scenario_with_a_step_with_a_doc_string_and_content_type
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#1265 (review)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAt6CZu5TOxEjZdoiTO-hVtUrohk2jY6ks5suyjugaJpZM4QB5fI>.
|
@rjwittams Not a bot ;) Sorry, I missed your comment about the PRs being related. |
159ec4c
to
74325ea
Compare
Should cucumber/common#292 be accepted and the content type of doc strings be included in the Pickles, then it is convenient for the Json Formatter to get in from the Pickle, until then #1309 is fixing the regression from v1.x.x so that the content type is included in the Json Formatter output. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. |
This issue has been automatically closed because of inactivity. You can support the Cucumber core team on opencollective. |
cucumber/common#292 has been accepted, now we just have to wait for a Gherkin release before this PR can be merged. |
Hi @rjwittams, Thanks for your making your first contribution to Cucumber, and welcome to the Cucumber committers team! You can now push directly to this repo and all other repos under the cucumber organization! 🍾 In return for this generous offer we hope you will:
On behalf of the Cucumber core team, |
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. |
Summary
Docstring content type is currently not carried down into the json formatter.
This worked in 1.2.5.
PickleString did not have the corresponding field, so I added that in:
cucumber/common#292
(The mono repo PR is required for this one to compile, so this will fail CI).
#1263
Fixing this bug.
Passes the contentType field down into the map that gets json serialized.
Uses the content_type name to match 1.2.5 and other language reports.
Motivation and Context
#1263
How Has This Been Tested?
Unit test added.
All tests run, Pax Exam Calculator Test appears to be broken before this change, due to a deployment issue?
Screenshots (if appropriate):
Types of changes
Checklist:
I do not know if any docs need changing. I expect not as this is a regression from 1.2.5