Class Buildr::JUnit
In: lib/buildr/java/tests.rb  (CVS)
Parent: TestFramework::Java

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.

Methods

Classes and Modules

Class Buildr::JUnit::Report

Constants

VERSION = '4.7'   JUnit version number.

Public Class methods

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'

[Validate]