views:

186

answers:

1

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.

+1  A: 

I found that this message:

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

is related to a cucumber bug, like posted on this site

My workaround was edit config/cucumber.yml and left it like this:

std_opts = "--format rerun --out rerun.txt --strict --tags ~@wip"

%>

.....

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

Now it worked. I think this is cloudy for me, and maybe some more comments on this (and maybe another) 'bug' would be nice. Also, another useful settings would be nice.

Gabriel L. Oliveira
Cheers this helped me too!
Evolve