db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Db-derby Wiki] Update of "DerbyJUnitTesting" by DanDebrunner
Date Fri, 12 Jan 2007 17:50:18 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The following page has been changed by DanDebrunner:

  Then supply the complete name of the test class in the top window, e.g. `org.apache.derbyTesting.functionTests.tests.jdbcapi.ProcedureTest`.
  <!> The use of the `-noloading` flag is required, if you recompile Derby or the test
classes you must restart the graphical test runners.
+ === Running tests using ant in a code line ===
+ The top-level build.xml file in the trunk codeline contains two targets for running JUnit
+ || '''Target''' || '''Action''' ||
+ || `junit-all` || Run all the JUnit tests. Runs the same set of tests as `suites.All` though
it is broken down into per-package `_Suite` runs. May also run additional tests that require
special setup or need to run in their own JVM such as the tests for checking the auto-loading
of JDBC drivers ||
+ || `junitreport` || Run `junit-all` and produce an HTML report in the output folder ||
+ The tests are run using the CLASSPATH of the environment which needs to include the Derby
code you want to test and junit.jar.
+ `JAVA_HOME` needs to be set to the JVM to be tested and `PATH` must be set up so that the
execution of `java` matches the virtual
+ machine from `JAVA_HOME`.
+ If the ant property `jdk16` is set then the Java SE 6/JDBC 4 tests will be run using the
virtual machine at `${jdk16}/bin/java`.
+ Note this need not match the virtual machine defined in `JAVA_HOME`. If `jdk16` is not set
then the Java SE 6/JDBC 4 tests '''even'''
+ if `JAVA_HOME` points to a Java SE 6 environment.
+ The output folder is created in the curent directory with the name `junitYYYYMMDD_hhss`,
e.g. `junit_20070112_0813`.
+ When the report is generated it can viewed using the `index.html` file in the output folder.
  === Running tests using the old Derby harness ===
  The [:KillDerbyTestHarness:old Derby harness] supports running JUnit tests directly and
from its suite.runall files.

View raw message