https://github.com/elia/rspec-rails-watchr
MOVED TO spectator
https://github.com/elia/rspec-rails-watchr
Last synced: about 1 year ago
JSON representation
MOVED TO spectator
- Host: GitHub
- URL: https://github.com/elia/rspec-rails-watchr
- Owner: elia
- License: mit
- Created: 2011-12-26T22:46:08.000Z (over 14 years ago)
- Default Branch: spectator
- Last Pushed: 2011-12-26T22:46:21.000Z (over 14 years ago)
- Last Synced: 2025-05-23T23:37:09.689Z (about 1 year ago)
- Language: Ruby
- Homepage: https://github.com/elia/spectator
- Size: 93.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# Usage
In your specs.watchr file just add:
@specs_watchr ||= Rspec::Rails::Watchr.new(self)
Then launch `watchr` as usual (probably `bundle exec watchr`).
## Instructions
The normal behavior is similar to `autotest --fast-start --no-full-after-failed`
but gives the user a bit more control over execution. By hitting CTRL+C (or CMD+. on OSX)
you get the following prompt:
^C (Interrupted with CTRL+C)
--- What to do now? (q=quit, a=all-specs, r=reload):
## Advanced
If you want to override some path matching:
@specs_watchr ||= Rspec::Rails::Watchr.new(self) do |path, specs|
case path
when %r{lib/calibration_with_coefficients}
specs.grep(%r{models/(logarithmic|polynomial)_calibration})
when %r{app/models/telemetry_parameter}
specs.grep(%r{models/telemetry_parameter})
end
end
Copyright (c) 2011 Elia Schito, released under the MIT license