Allure-cucumberjs - How to "reactivate" the console standard output ? #2739
Replies: 1 comment
-
CucumberJS has super weird formatter restrictions:
By default, when you specify the formatter (either via cli args or config) you need to specify the output file: $ cucumber-js --format format-name:path/to/output/file.txt All the formatters without the output file specified are considered to have stdout as the output. Only the latest specified formatted per output will be used; the other will be ignored. If no formatter uses The workaround is to specify just any non-existing path as the output for the allure formatter: $ cucumber-js --format allure-cucumberjs/reporter:ignored.txt Or via config: {
"default": {
"parallel": 2,
"format": [["allure-cucumberjs/reporter", "ignored.txt"]],
}
} This will create an empty file named |
Beta Was this translation helpful? Give feedback.
-
When I execute Node.js cucumber tests without the allure listener, I get an output like this after executing the tests:
When I add the Allure listener, I don't get output in the console when executing the tests
How to re-activate the standard output when using the Allure listener ?
Beta Was this translation helpful? Give feedback.
All reactions