Michael Durrant
Michael Durrant

Reputation: 96454

Rails - How can I run cucumber tests only?

I can run all models with rake:models

Any option to do that that for cucumber tests instead of just rake and running all tests at all levels?

I tried:

$ rake spec:cucumber
rake aborted!
Don't know how to build task 'spec:cucumber'

Upvotes: 2

Views: 9057

Answers (1)

janders223
janders223

Reputation: 3153

You should be able to just run rake cucumber

A quick output of rake -T shows:

rake cucumber                          # Alias for cucumber:ok
rake cucumber:all                      # Run all features
rake cucumber:ok                       # Run features that should pass
rake cucumber:rerun                    # Record failing features and run only them if any exist
rake cucumber:wip                      # Run features that are being worked on

Upvotes: 15

Related Questions