class Buildr::JUnit

JUnit test framework, the default test framework for Java tests.

Support the following options:

Constants

VERSION

JUnit version number.

Public Class Methods

dependencies() click to toggle source
# File lib/buildr/java/tests.rb, line 200
def dependencies
  @dependencies ||= ["junit:junit:jar:#{version}"]+ JMock.dependencies
end
report() click to toggle source

Returns the Report object used by the junit:report task. You can use this object to set various options that affect your report, for example:

JUnit.report.frames = false
JUnit.report.params['title'] = 'My App'
# File lib/buildr/java/tests.rb, line 192
def report
  @report ||= Report.new
end
version() click to toggle source
# File lib/buildr/java/tests.rb, line 196
def version
  Buildr.settings.build['junit'] || VERSION
end