Passing options in autospec with Cucumber in Ruby on Rails Development

Posted by TK on Stack Overflow See other posts from Stack Overflow or by TK
Published on 2010-01-12T11:00:49Z Indexed on 2010/06/17 14:03 UTC
Read the original article Hit count: 284

Filed under:
|
|
|
|

I always run autospec to run features and RSpec at the same time, but running all the features is often time-consuming on my local computer. I would run every feature before committing code.

I would like to pass the argument in autospec command. autospec doesn't obviously doesn't accept the arguments directly. Here's the output of autospec -h:

    autotest [options]

options:
    -h
    -help       You're looking at it.

    -v      Be verbose.
            Prints files that autotest doesn't know how to map to
            tests.

    -q      Be more quiet.

    -f      Fast start.
            Doesn't initially run tests at start.

I do have a cucumber.yml in config directory. I also have rerun.txt in the Rails root directory. cucumber -h gives me a lot of information about arguments.

How can I run autospec against features that are tagged as @wip? I think I can make use of config/cucumber.yml. There are profile definitions. I can run cucumber -p wip to run only @wip-tagged features, but I'd like to do this with autospec.

I would appreciate any tips for working with many spec and feature files.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby