Rails - rspec - How can I run all integration tests similar to rake spec: models

The following commands work:

rake spec:models
rake spec:controllers
rake spec:requests

but the following:

rake spec:integration
rake spec:integrations

How can I run all integration tests?

+5
source share
2 answers

One option is to use rspec spec/integration/*, I think.
I was hoping for an answer that worked with a rake, like other methods.

+3
source

Actually, query specifications are integration tests in rspec. Have some of the tests been inherited from test :: unit?

Test:: Unit - rails, ( -T, test:: unit), spec/integration, Rspec, spec/. , _test rails g integration_test testname, .

0

All Articles