Closed novicovs closed 2 years ago
Can't reproduce. You have to provide me a cloneable repository that illustrates the error.
@badeball Hello, sir. As discussed above - I've prepated demo-repo.
Link to the repository: https://github.com/novicovs/cypress-cucumber-no-json
Steps to reproduce:
set DEBUG=cypress:server:reporter,cypress:server:preprocessor
npx cypress run
Actual result: There is 'createPickle' function error at the end of the logs and Json & ndJson are not generated.
Expected result: Should not be errors and Json & ndJson are generated.
Still can't reproduce. Have you actually tried running said repository yourself or have you been assuming it would reproduce the issue?
Ofc I did testings before publishing demo-repo.
From my side the main framework and for demo one reproduce issue described above.
Yeah, I followed your steps and observed no error.
Either way, you're not going to get any JSON report because @shelex/cypress-allure-plugin
appears to be incompatible with other plugins that listens to Cypress events such as after:run
(this has come up before). The authors of the plugin must to modify it to play nicer with other plugins, similar to what I did in 15ae6d0, if this is to be supported. Feel free to open up an issue in their repository to bring it to their attention (reference this comment).
Current behavior
When my automation is finished and I expect Json to be generated with active Allure Writer - createPickle() function returns an error. Removing/commenting part with allure writer fixes this.
Console log from cypress-cucumber-preprocessor:
Desired behavior
Json should be generated (according to doc) with active Allure Writer.
Test code to reproduce
cypress.config.js
package.json
Versions
Checklist
cypress-cucumber-preprocessor@4.3.1
(package name has changed and it is no longer the most recent version, see #689).