Qspec makes rspec test fast. Q is for queue and quick.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install qspec
You can use
spork to cut the overhead of Qspec startup.
Use 1.0. Old
spork does not detect Qspec.
gem 'spork', '~> 1.0rc'
If you are on rails, remember to add
By default, qspec uses file based inter-process communication. This is poorly implemented and becomes a burden.
We recommend to use
- Setting up redis-server with default port
redisgem to your Gemfile
redisfor IPC method in
Installing this gem adds
$ bundle exec qspec-helper init # edit .qspec.yml
bundle exec qspec spec/
Run with spork
bundle exec qspec-helper spork bundle exec qspec spec/
All configuration is done through
qspec-helper init will generate the template, but there are more options.
This option is given to redis's constructor. See redis-rb/README.md for more details.
redis: host: localhost port: 6379 namespace: qspec driver: hiredis
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request