Closed MichalFidor closed 7 months ago
As far as I know, cucumber does not allow two reporters to point to the same output location (file, or stdout if file name is not provided). In your case both reporter and cucumber-pretty are set to write to stdout. Fix should be simple, just provide some file name to reporter:
format: [
'json:results/results.json',
'node_modules/cucumber-pretty',
'reporter/reporter.ts:OUTPUT.txt',
'rerun:@rerun.txt',
]
Note the :OUTPUT.txt
, name can be any, no actual output is generated by the reporter anyway.
I'm submitting a ...
What is the current behavior?
I've got a package which formats the logs during test execution (cucumber-pretty). Now, while I provide Allure reporter to cucumberOpts.format together with cucumber-pretty, the 2nd one doesn't want to work.
My config file:
'reporter/reporter.ts' is a file with class Reporter for CucumberJSAllureFormatter
What is the expected behavior?
It should be able to add also other formatter for the log file.
Please tell us about your environment: