Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (35 sloc) 1.02 KB

How to enable testing in your application

Refinery ships with a range of specs and cucumbers to test it. This guide will show you how to:

  • Run the tests that come built in with Refinery to ensure your install is working correctly
  • Run the engines tests

endprologue.

Setup test enviroment

At the Gemfile uncomment the refinerycms-testing line

gem ‘refinerycms-testing’

And run

$ bundle install

Now we will configure our test environment with

$ rails generate refinerycms_testing

Running the Tests

At your application root run:

$ bundle exec rake

This will run the cucumber and rspec tests.

To run just cucumber:

$ bundle exec cucumber

To run just rspec:

$ bundle exec rake spec

Where are the tests?

Refinery tests are located inside each engine in two locations: /features and /spec.

Third-party engines should have their own tests in their respective engine folders (which may be inside their gem).

Jump to Line
Something went wrong with that request. Please try again.