Running tests

Steve Kenworthy edited this page Jan 3, 2014 · 1 revision

Running tests

Running tests can be as simple as running

bundle exec rake spec

However, there are a few useful options to be aware of.

  • To run acceptance tests without a real browser, activate headless:
HEADLESS=true bundle exec rake spec
  • To run a subset of tests, use rspec. E.g.
bundle exec rspec spec/models/entities
  • To help speed up tests, it is possible to use zeus to preload the Rails environment. Fat free CRM comes with a zeus json configuration file.
gem install zeus
zeus start

Then in another console, run your tests:

zeus rspec spec/models/entities
zeus rake spec
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.