You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to configure this formatter as a non-STDOUT formatter? I want to use this formatter to output the xml reports, as well as having the test results piped onto the console as well.
However, it looks to me cucumber only accepts at most 1 formatter that uses STDOUT, as seen in the cucumber code below.
The default Rake invocation of CI::Reporter::Cucumber does not pass an -o option in conjunction with the formatter when the cucumber binary is run.
This means that Cucumber thinks that CI::Reporter will be reporting to stdout. Since only one thing is allowed to write to stdout, this disables the built-in console formatter.
You'd like to be able to use both CI::Reporter and the console formatter concurrently.
I don't think that the proposed solution of -o /dev/null is appropriate as it is Linux-specific. It's also a bit misleading, as the output isn't going to /dev/null. What would be better is if we actually used the -o setting appropriately, perhaps as the base directory of all the files.
This will require a change to ReportManager as well as CI::Reporter::Cucumber. Plus some investigation to understand exactly what the io parameter is.
Is there a way to configure this formatter as a non-STDOUT formatter? I want to use this formatter to output the xml reports, as well as having the test results piped onto the console as well.
However, it looks to me cucumber only accepts at most 1 formatter that uses STDOUT, as seen in the cucumber code below.
https://github.com/cucumber/cucumber-ruby/blob/646cfe7e5534b32aed6ff3046a889ad069955940/lib/cucumber/cli/options.rb#L388
The text was updated successfully, but these errors were encountered: