Skip to content

thegarage/guard-jasmine-rails

Repository files navigation

Guard::JasmineRails

Guard Plugin for running Jasmine Javascript tests via the JasmineRails gem

Installation

Install gem via rubygems:

$ gem install guard-jasmine-rails

Setup your Guardfile with the proper configuration with:

$ guard init jasmine-rails

Usage

# Guardfile
guard 'jasmine-rails' do
  watch(%r{spec/javascripts/.+_spec\.(js\.coffee|js|coffee)$})
  watch(%r{app/assets/javascripts/(.+?)\.(js\.coffee|js|coffee)(?:\.\w+)*$}) do |m|
    "spec/javascripts/#{ m[1] }_spec.#{ m[2] }"
  end
end

Options

configure the plugin by passing options into the guard initializer. ex:

# example to configure plugin
guard 'jasmine-rails', all_on_start: false do
end

all_on_start (default true)

toggle running all Jasmine tests when Guard is first started.

Contributing

Patches are always welcome and thank you to all project contributors!

Interested in contributing? Review the project contribution guidelines and get started!

About

Guard plugin for running JasmineRails Javascript Tests

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages