You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Stu King <st...@stuartrexking.com> on 2011/03/24 03:44:40 UTC

Pre test hook

How would I specify a task to run before / after running my tests for a
project definition? I am using JUnit to run some component tests against a
back end service. I have a Rake task I can call to start / stop the
service.

Say my definition looks like this:

define "document" do
   package :jar

   task :start_service do
     #start some service
   end
end

How would I can :start_service before running my unit tests?

Cheers

Stu