Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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