Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

Commit

Permalink
Renaming files to the normal convention now that we don't need to sup…
Browse files Browse the repository at this point in the history
…port autotest defaults. Added guard as the new default.
  • Loading branch information
joakimk committed Jun 19, 2011
1 parent fbe04bf commit 0705f47
Show file tree
Hide file tree
Showing 15 changed files with 24 additions and 3 deletions.
1 change: 1 addition & 0 deletions .bundle/config
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
---
BUNDLE_DISABLE_SHARED_GEMS: "1"
BUNDLE_BIN: .bundle/bin
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ instance*
*/**/*.swp
*/*/*/*.swp
tmp
.bundle/bin
9 changes: 9 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ GEM
gherkin (2.2.9)
json (~> 1.4.6)
term-ansicolor (~> 1.0.5)
guard (0.4.2)
thor (~> 0.14.6)
guard-test (0.3.0)
guard (>= 0.2.2)
test-unit (~> 2.2)
httparty (0.7.4)
crack (= 0.1.8)
json (1.4.6)
Expand All @@ -43,6 +48,8 @@ GEM
sinatra (1.0)
rack (>= 1.0)
term-ansicolor (1.0.5)
test-unit (2.3.0)
thor (0.14.6)

PLATFORMS
ruby
Expand All @@ -51,6 +58,8 @@ DEPENDENCIES
bundler
cucumber
flexmock
guard
guard-test
rack-test
rake
rvm
Expand Down
7 changes: 7 additions & 0 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme

guard 'test', :all_after_pass => false, :all_on_start => false do
watch(%r{^lib/(.+)\.rb$}) { |m| "test/#{m[1]}_test.rb" }
watch(%r{^test/.+_test\.rb$})
end
5 changes: 3 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@ First, get the tests to run:
bundle
rake

For development I recommend: [grosser/autotest](http://github.com/grosser/autotest)
For development I recommend using guard.

autotest -f -c
# OSX needs: gem install rb-fsevent
guard

Make your change (don't forget to write tests) and send me a pull request.

Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ end

desc "Run Test::Unit tests"
task :test do
Dir["test/**/test_*.rb"].each { |test| require(File.expand_path(test)) }
Dir["test/**/*_test.rb"].each { |test| require(File.expand_path(test)) }
end


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions testbot.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@ Gem::Specification.new do |s|
s.add_development_dependency("rvm")
s.add_development_dependency("rake")
s.add_development_dependency("bundler")
s.add_development_dependency("guard")
s.add_development_dependency("guard-test")
end

0 comments on commit 0705f47

Please sign in to comment.