JUnit test framework, the default test framework for Java tests.
Support the following options:
:fork – If true/:once (default), fork for each test class. If :each, fork for each individual
test case. If false, run all tests in the same VM (fast, but dangerous).
:clonevm – If true clone the VM each time it is forked.
:properties – Hash of system properties available to the test case.
:environment – Hash of environment variables available to the test case.
:java_args – Arguments passed as is to the JVM.
JUnit version number.
# File lib/buildr/java/tests.rb, line 200 def dependencies @dependencies ||= ["junit:junit:jar:#{version}"]+ JMock.dependencies end
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
# File lib/buildr/java/tests.rb, line 196 def version Buildr.settings.build['junit'] || VERSION end