Closed varshanharshank closed 1 year ago
This would be best raised against the https://github.com/allure-framework/allure-js repo, but something I would note from the readme there:
If you want to retain default formatter add some dummy file as output:
cucumber-js --format ./path/to/reporter.js:./dummy.txt
It looks like the Allure formatter doesn't emit anything to the given stream, so you need to give it a file (the second part after the :
) to point at otherwise it overrides the default progress/summary formatter which is why you get no terminal output.
@davidjgoss Great. Thanks for the quick response. I tried the above step and it is working fine now.
👓 What did you see?
playWright+Cucumber+Allure - Run cucumber.js test via CLI and it is not showing any failure in terminal if any of the test case is failed
This issue is happening if allure report is configured under format in the
cucumber.json
file:But, we can see the fail message in terminal if cucumber report is configured under format in the
cucumber.json
file:The below allureReport.ts file used
✅ What did you expect to see?
CLI screen should show fail message irrespective any report (either cucmber or allure)
📦 Which tool/library version are you using?
Using the below
package.json
:🔬 How could we reproduce it?
Steps to reproduce the behavior: This is private report unable to share it here
📚 Any additional context?
This text was originally generated from a template, then edited by hand. You can modify the template here.