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 Thu, 31 Jan 2008 17:28:14 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

------------------------------------------------------------------------------
  <!> The use of the `-noloading` flag is required, which means that 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
tests.
+ The top-level build.xml file in the trunk codeline contains targets for running JUnit tests.
  
  || '''Target''' || '''Action''' ||
  || `junit-clean` || Remove all the `junitYYYYMMDD_hhss` output folders from previous test
runs ||
@@ -167, +167 @@

  
  === Running tests using Eclipse ===
  
- Eclipse is a good tool to run the junit tests. Once you have your code and the related jar
files in eclipse env then using the java perspective in the package explorer right click on
the classname of the test and select the "Run As" option. It will have Junit Test as one option.
Click that and then you can view how the test progress in the junit tab. Here is the screen
shots for a [attachment:passed.jpg passing test] and a [attachment:failed.jpg failing test].
+ Eclipse is a good tool to run the junit tests. Once you have your code and the related jar
files in eclipse env then using the java perspective in the package explorer right click on
the classname of the test and select the "Run As" option. It will have Junit Test as one option.
Click that and then you can view how the test progress in the junit tab. If a test fails you
can click on the lines in the displayed stack trace and Eclipse will open up that java file
 in the editor at the correct line.
+ Here is the screen shots for a [attachment:passed.jpg passing test] and a [attachment:failed.jpg
failing test].
  
  
  

Mime
View raw message