My question is similar to this , where they want to override rake spec
's output format. The resolution to that question is to use the .rspec config file, which is limiting. I would like this to be a command line argument because I want this to vary on different machines.
The rspec executable has the -f
option be defining format. rake spec
has -f
defining a rakefile. rake spec --format
is invalid. Is this an oversight in rake spec
? "Format" really isn't an option?
ANSWER: I'm self answering my question here. rake spec will take the SPEC_OPTS environment variable.
rake spec SPEC_OPTS="--format documentation"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With