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:55:17 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:
http://wiki.apache.org/db-derby/DerbyJUnitTesting

------------------------------------------------------------------------------
  
  === Running tests using the old Derby harness ===
  
+ <!> All except two JUnit tests are now (Jan 2007) setup to run only as pure-JUnit
tests, and it is expected that no new tests will be added
+ that require the old harness, thus this section can be safely ignored for the most part.
<!>
+ 
  The [:KillDerbyTestHarness:old Derby harness] supports running JUnit tests directly and
from its suite.runall files.
  The name of a Derby JUnit test is the test name using the suffix `.junit` instead of `.java`,
e.g. `somesuite/SomeTest.junit`. In other words, the test type is `junit`. The file that implements
a test is a java file, e.g. `SomeTest.java`. The test harness uses the last part of the ''name''
to decide how it should run the test. If the name ends with `.java`, the harness knows that
the test is a java class with a `main()` method. If the name ends with `.junit`, the harness
knows it is a java class which can be run by a JUnit test runner. No actual file exists with
the `.junit` suffix.
  

Mime
View raw message