$:.unshift File.join(File.dirname(__FILE__), "..", "..", "lib") require 'test/unit' require 'buildmaster' class AntTest < Test::Unit::TestCase protected def setup super build_file = File.join(File.dirname(__FILE__), "build.xml") @ant = Ant.new(build_file) end public def test_run @ant.project_help end def test_pass @ant.target('passing') end def test_fail assert_raise(RuntimeError) {@ant.target('failing')} end end