buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stu King <...@stuartrexking.com>
Subject Pre test task
Date Thu, 24 Mar 2011 02:50:09 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message