Behat icon indicating copy to clipboard operation
Behat copied to clipboard

Problems with multiple outputs and a single format

Open aledeg opened this issue 8 years ago • 1 comments

I'd like to output the results both in the console and in a file. I'd like to use progress formatter in both cases, but it does not work.

I tried with multiple format options

vendor/bin/behat --format progress --out std --format progress --out behat.log --strict

Nothing is displayed in the console and the results are doubled in the file:

...................................................................... 70
...................................................................... 140
...................................................................... 210
............................................

30 scenarios (30 passed)
254 steps (254 passed)
0m55.06s (155.63Mb)


30 scenarios (30 passed)
254 steps (254 passed)
0m55.06s (155.63Mb)

I have only 15 scenarios and 127 steps in my test suite

I tried with a single format option

vendor/bin/behat --format progress --out std --out behat.log --strict

The details are displayed in the console but the file is not created

I tried with a single format option and reordered the out options

vendor/bin/behat --format progress --out behat.log --out std --strict

Nothing appears in the console and the file is created.

I tried without format option

vendor/bin/behat --out behat.log --out std

The details are displayed in the console but the file is not created

When I use different formats for the different outputs, it's working properly

vendor/bin/behat --format pretty --out behat.log --format progress --out std --strict

The details are displayed in the console and the file is created.

aledeg avatar Jan 02 '17 11:01 aledeg

Only one output per format is currently supported.

everzet avatar Jan 09 '17 11:01 everzet