Skip to content

thunderboltlabs/guard-konacha

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guard::Konacha Build Status

Automatically run your Konacha tests through Guard.

Install

Install the gem:

$ gem install guard-konacha

Or add to your Gemfile:

gem 'guard-konacha'

Usage

Add guard definitions to your Guardfile

guard :konacha do
  watch(%r{^app/assets/javascripts/(.*)\.js(\.coffee)?$}) { |m| "#{m[1]}_spec.js" }
  watch(%r{^spec/javascripts/.+_spec(\.js|\.js\.coffee)$})
end

Configuration

If your specs live outside of spec/javascripts then tell Konacha where to find them.

guard :konacha, :spec_dir => 'spec/front-end' do
  # ...
end

If you want to use capybara-webkit instead of the default selenium driver:

require 'capybara-webkit'
guard :konacha, :driver => :webkit do
  # ...
end

Or use Poltergeist:

require 'capybara/poltergeist'
guard :konacha, :driver => :poltergeist do
  # ...
end

If you are running konacha:serve on a different host or port than the default localhost and 3500, the configuration settings :host and :port will help you there.

Development

This is a work in progress and could use some help.

Contributors

https://github.com/alexgb/guard-konacha/graphs/contributors

About

Automatically run konacha tests through Guard

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%