04. Debugging with JUnit in 2.0
Debugging with JUnit in 2.0
This Step's Objective
This step instructs you on how to debug platform project code using JUnit.
The easiest method for tracing through code in the Pentaho project is to use a JUnit test case. If you are not familiar with JUnit, you should learn more about it before proceeding; you can find suitable documentation on the JUnit Web site.
There are a number of JUnit test cases already built to test individual component features and subsystems of the platform. Each project has a directory called test-src which contains a set of directories identical to those in src, with a Test appended to the name. Each of these subdirectories contains test cases, which Eclipse has the ability to run natively. Just select the test case that you wish to run, then go to the Run menu, select New JUnit Test, then follow the instructions provided in the Eclipse dialog.