Hitachi Vantara Pentaho Community Wiki
Child pages
  • 06. Debugging with JUnit
Skip to end of metadata
Go to start of metadata


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 can learn more about it at http://www.junit.org/index.htm) . There are a number of JUnit test cases already built to test individual component features and subsystems of the platform. They can be found in the pentaho project's source tree at ./server/pentaho/test/org/pentaho. Eclipse has built in capabilities for running JUnit tests. Just select the test case that you wish to run (open the source file), and from the Eclipse menu, select Run..New JUnit Test.. Follow the instructions provided in the Eclipse dialog, which are pretty straight forward.

Note that there are a few tweaks you will need to make to the server project to run the Pentaho JUnit test cases standalone through Eclipse. Read about it here.

Quick Links For This Document


  • No labels