Closed edgarechm closed 7 years ago
@edgarechm
I see you're explicitly generating JSON file and then passing to the html-reporter. Doesn't protactor creates the JSON file by itself?
However, Cucumber V2 has changed the implementation and Cucumber.Listener.JsonFormatter()
has changed its place. Could you submit an issue at cucumberjs?
Protractor does, if I change output format to Json. However, I need to have it in both outputs. Gherking for me and JSON to create the report.
And yes, kinda thought the issue is with Cucumberjs, from what I saw at the JsonFormatter differences in code. I'll let them know about the issue at cucumberjs.
@edgarechm
I hope you'll get it resolved through Cucumber.js group. I am closing this issue. Feel free to re-open if you have any further feedback.
Thanks!
This is my hooks file... with Cucumberjs2.0 update.
I get this error message:
It looks like the error is in this line of code:
var JsonFormatter = Cucumber.Listener.JsonFormatter();
Any clues to what can be wrong?
Cucumberjs version 2.0 Protractor version 5.1.1
I can see a probable cause. Cucumberjs old version had a completely different implementation of the JsonFormatter method. What do I need to change in my hooks.js in order to have my reports work? Is this the correct place to ask my question?