junit reports are not getting generated with cucumber.js+playwright #2255
Unanswered
Ajith-Abraham
asked this question in
Q&A JavaScript
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have integrated cucumber.js+Playwright for web ui testing.
These are the below versions used
"devDependencies": {
"@cucumber/cucumber": "^7.3.1",
"@cucumber/pretty-formatter": "^1.0.1",
"@playwright/test": "^1.52.0",
"@types/node": "^22.15.17",
"playwright-bdd": "^8.2.1",
"ts-node": "^10.9.2",
"typescript": "^5.8.3"
}
While running the command npx cucumber-js tests/features//.feature --require-module ts-node/register --require "tests/step_definitions//.ts" --publish-quiet --format json:reports/report.json, i am able to get the json report and npx cucumber-js tests/features//.feature --require-module ts-node/register --require "tests/step_definitions//.ts" --publish-quiet --format html:reports/report.html , i am able to get the html report.
While running the same scripts with npx cucumber-js tests/features//.feature --require-module ts-node/register --require "tests/step_definitions//.ts" --publish-quiet --format junit:reports/report.xml, I am getting error
Error: Cannot find module 'junit'
Could you please support on the same
Beta Was this translation helpful? Give feedback.
All reactions