Permalink
Browse files

Automatically run tests when tests or implementation changes.

  • Loading branch information...
1 parent f29c64e commit dbe0303350136a303d8a375e5b63ab2c2ae016d2 @Manfred Manfred committed Jan 11, 2011
Showing with 19 additions and 5 deletions.
  1. +2 −1 .gitignore
  2. +17 −4 .kick
View
@@ -6,4 +6,5 @@ pkg
tmp
Passenger.xcodeproj/project.xcworkspace/xcuserdata/*
Passenger.xcodeproj/xcuserdata/*
-*.gem
+*.gem
+test/passenger_pane/PassengerTest.framework
View
21 .kick
@@ -1,13 +1,26 @@
recipe :ignore
-ignore(/^(tmp)/)
+ignore(/^(tmp|Passenger.xcodeproj)/)
recipe :ruby
+module Nu
+ def self.run_tests(files)
+ unless files.empty?
+ execute "rake test:passenger_pane"
+ end
+ end
+end
+
process do |files|
- Ruby.run_tests(files.take_and_map do |file|
+ # Ruby.run_tests(files.take_and_map do |file|
+ # case file
+ # end
+ # end)
+
+ Nu.run_tests(files.take_and_map do |file|
case file
- when %r{^test/test_helper/add_allow_switch.rb$}
- 'test/test_helper/add_allow_switch_test.rb'
+ when %r{^app/.*\.m$}, %r{^test/passenger_pane/.*_test\.nu$}
+ file
end
end)
end

0 comments on commit dbe0303

Please sign in to comment.