Class: BuildMaster::JUnitAntTest

Inherits:
Object
  • Object
show all
Defined in:
lib/buildmaster/auto/junit_ant.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(junit, name) ⇒ JUnitAntTest

Returns a new instance of JUnitAntTest.



117
118
119
120
# File 'lib/buildmaster/auto/junit_ant.rb', line 117

def initialize(junit, name)
  @name = name
  @junit = junit
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



115
116
117
# File 'lib/buildmaster/auto/junit_ant.rb', line 115

def name
  @name
end

Instance Method Details

#to_antObject



122
123
124
125
126
# File 'lib/buildmaster/auto/junit_ant.rb', line 122

def to_ant
  return <<RESULT
  <test name="#{name}" todir="#{@junit.test_report}"/>
RESULT
end