Cucumber - How configure it to use "--format pretty" as default?

Posted by Gabriel L. Oliveira on Stack Overflow See other posts from Stack Overflow or by Gabriel L. Oliveira
Published on 2010-05-12T04:25:52Z Indexed on 2010/05/12 6:14 UTC
Read the original article Hit count: 269

Filed under:
|

I'm starting learning rails, and having some troubles on configure cucumber to run my bdd tests. What I want is run

cucumber features

and this translate to

cucumber features --format pretty

I tried to do this editing the config/cucumber.yml file (on a rails project). Edited the line:

default: <%= std_opts %> features

resulting on:

default: <%= std_opts %> --format pretty features

But it make some erros happen:

Using the default profile... All but one formatter must use --out, only one can print to each stream (or STDOUT) (RuntimeError)

What I can do to make this option "--format pretty" default? Also, is there any other good option to put as default to make result more clear?

Thank you.

© Stack Overflow or respective owner

Related posts about cucumber

Related posts about configuration