Behat/Behat — Issue #78: Cannot combine pretty and junit formatter
Author: gabrielpillet
Created: 2011-12-23 15:07:09+00:00
State: open

```
php behat.phar -f=pretty,junit --out=/home/somedir
```

outputs : [Behat\Behat\Exception\FormatterException]
Filename expected as "output_path" parameter of "PrettyFormatter" formatter, but got: "/home/somedir"

```
php behat.phar -f=pretty,junit --out=/home/somefile.txt
```

outputs : [Behat\Behat\Exception\FormatterException]
Directory path expected as "output_path" parameter of Behat\Behat\Formatter\JUnitFormatter, but got: /home/somefile.txt

It would be very convenient to use both formatter for Hudson integration, as we can have Hudson success/fail with "junit", and see exactly what happens in the console with "pretty"