-
-
Notifications
You must be signed in to change notification settings - Fork 697
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/json-to-messages] Status from json file are transformed in the generated messages file #1357
Comments
@cbohiptest can you please confirm the name and version of the tool that generated this JSON file? |
@cucumber/json-to-messages version 6.0.0 |
Thanks. I meant the tool that generated the JSON file, not the messages file. |
I asked the user, waiting for his answer (different time zone). |
The The {
"arguments": [],
"keyword": "Given ",
"line": 14,
"name": "Set up policy for renewal",
"result": {
"status": "passed",
"duration": 1543000000
},
"match": {
"location": "path/to/matching/step_definition.js:345"
},
}, Since there is no As far as I know, all Cucumber implementations correctly set the @vincent-psarga - I wonder if we should change the logic so that we always derive the status from the |
Looks like Cypress has its own Cucumber JSON generator that somehow uses Cucumber's JSON generator: https://github.com/TheBrainFamily/cypress-cucumber-preprocessor/tree/master/lib/cukejson - I'd assume they just forgot to set the So two solutions: Any takers? |
@aslakhellesoy Just to confirm yes we are using cypress v6.2.1 Presently we are defining our steps in a folder that matches the name of the feature file e.g
but it sounds like we can also define them using steps_definition file i.e
I will give this a try but if our steps weren't being found then I assume we'd have a run time error. Will report back when I get some time to try this out. |
I don’t think the changes you are suggesting will make a difference for you. As I have tried to explain, the problem seems to be that Cypress is not generating the JSON file properly. |
I would suggest to do both. If Cypress fix their resulting report, that would be great |
Summary
Expected Behavior
The status of the steps in generated messages file should be the same as the status of the steps in the json file.
Current Behavior
When running the CLI described in https://www.npmjs.com/package/@cucumber/json-to-messages :
cat renewal.cucumber.json | ./node_modules/.bin/json-to-features > my_report.messages
the steps in the my_report.messages are incorrect one passed step become undefined, one passed step become skipped, one failed step become skipped.
[
files.zip
](url)
Version of @cucumber/json-to-messages is 6.0.0
The text was updated successfully, but these errors were encountered: