views:

73

answers:

1

Hi,

I'm trying to run a cucumber feature multiple times (i.e 500 times). Is there a way of doing this than me having to type in the same command everytime? I'm guessing this can be done using Rake? I'm not an expert in using rake or cucumber.

Will appreciate your help.

Thanks

A: 
ruby -e '500.times { `cucumber` }'
lambdabutz
I'm sure you can just do this in a bash script as well, but I know ruby better than bash.
lambdabutz
`for x in {1..500}; do cucumber; done` should do the trick unless you are running an older version of Bash. It's actually easier, shorter, and faster in Ruby, though!
irkenInvader
And more expressive!
lambdabutz