Dashboard > BI Server Documentation - Latest > ... > Building and Debugging Pentaho with Eclipse > 06. Debugging with JUnit
06. Debugging with JUnit
Added by Marc Batchelor, last edited by patrick hart on Jan 24, 2008  (view change)
Labels: 
(None)



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



Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.2 Build:#807 May 20, 2007) - Bug/feature request - Contact Administrators