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 call :start_service before running my unit tests?

I am an inexperienced ruby developer, so any direction is greatly
appreciated.

Cheers

Reply via email to