cucumber / cucumber-js

Cucumber for JavaScript
https://cucumber.io
MIT License
5.02k stars 1.09k forks source link

cucumber-js reporting service with cypress-cucumber-preprocessor #2328

Closed s1mrankaur closed 10 months ago

s1mrankaur commented 10 months ago

👓 What did you see?

**cucumber-js publish

Cucumber report being published with 0 scenarios**

0 scenarios
0 steps
0m00.001s (executing steps: 0m00.000s) 

✅ What did you expect to see?

We are using Cypress with Cucumber and have following configuration:

 "cypress-cucumber-preprocessor": {
    "nonGlobalStepDefinitions": true,
    "stepDefinitions": "cypress/e2e/",
    "cucumberJson": {
      "generate": true,
      "outputFolder": "cypress/cucumber-json",
      "filePrefix": "",
      "fileSuffix": ".cucumber"
    }

There are JSON files in cypress/cucumber-json and I expected a report with the correct stats to be published on running cucumber-js publish

📦 Which tool/library version are you using?

"cypress": "12.12.0", "cypress-cucumber-preprocessor": "^4.3.1",

📚 Any additional context?

My understanding was that cucumber-js will just publish the report based on JSON outputs. What additional steps may be needed to get this working?


This text was originally generated from a template, then edited by hand. You can modify the template here.

badeball commented 10 months ago

https://github.com/badeball/cypress-cucumber-preprocessor/issues/1100#issuecomment-1732050611

davidjgoss commented 10 months ago

As @badeball hinted in the other issue, the cucumber-js option is --publish, and positional arguments refer to features.