Permalink
Browse files

add kicker task and test task

  • Loading branch information...
defunkt committed Dec 8, 2009
1 parent e0980a6 commit 98e128c79a9ac490a41cf191abf2cb8055a6b3d2
Showing with 40 additions and 0 deletions.
  1. +26 −0 .kick
  2. +14 −0 Rakefile
View
26 .kick
@@ -0,0 +1,26 @@
+# take control of the growl notifications
+module GrowlHacks
+ def growl(type, subject, body, *args, &block)
+ case type
+ when Kicker::GROWL_NOTIFICATIONS[:succeeded]
+ puts subject = "Success"
+ body = body.split("\n").last
+ when Kicker::GROWL_NOTIFICATIONS[:failed]
+ subject = "Failure"
+ puts body
+ body = body.split("\n").last
+ else
+ return nil
+ end
+ super(type, subject, body, *args, &block)
+ end
+end
+
+Kicker.send :extend, GrowlHacks
+
+# no logging
+Kicker::Utils.module_eval do
+ def log(message)
+ nil
+ end
+end
View
@@ -1 +1,15 @@
+require 'rake/testtask'
+
task :default => :test
+
+Rake::TestTask.new do |t|
+ t.libs << 'lib'
+ t.pattern = 'test/**/*_test.rb'
+ t.verbose = false
+end
+
+desc "Launch Kicker (like autotest)"
+task :kicker do
+ puts "Kicking... (ctrl+c to cancel)"
+ exec "kicker -e rake test bin"
+end

0 comments on commit 98e128c

Please sign in to comment.