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
Then in another console, run your tests:
zeus rspec spec/models/entities
zeus rake spec