Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Guard::Spork automatically manage Spork DRb servers
Ruby

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/guard
spec
.gitignore
Gemfile
Guardfile
LICENSE
README.rdoc
Rakefile
guard-spork.gemspec

README.rdoc

Guard::Spork

Spork guard allows to automatically & intelligently start/reload your RSpec/Cucumber Spork server(s).

  • Compatible with Spork 0.8.4 & 0.9.0.rc2

  • Tested on Ruby 1.8.6, 1.8.7 & 1.9.2.

Install

Please be sure to have guard installed before continue.

Install the gem:

gem install guard-spork

Add it to your Gemfile (inside test group):

gem 'guard-spork'

Add guard definition to your Guardfile with:

guard init spork

Usage

Please read guard usage doc

Guardfile

Spork guard can be really be adapated to all kind of projects. Please read guard doc for more info about Guardfile DSL.

!!! Attention place Spork guard before rspec/cucumber guards !!!

Rails app

guard 'spork' do
  watch('^config/application.rb$')
  watch('^config/environment.rb$')
  watch('^config/environments/.*\.rb$')
  watch('^config/initializers/.*\.rb$')
  watch('^spec/spec_helper.rb')
end

Options

Spork guard automatically detect RSpec/Cucumber/Bundler presence but you can disabled them via:

guard 'spork', :cucumber => false, :bundler => false do
  ...
end

Available options:

:cucumber => false
:rspec => false
:bundler => false # don't use "bundle exec"
:rspec_port => xxxx # default 8989
:cucumber_port => xxxx # default 8990

Development

Pull requests are very welcome! Make sure your patches are well tested. Please create a topic branch for every separate change you make.

Authors

Thibaud Guillaume-Gentil

Something went wrong with that request. Please try again.