How to use JTiger with the Eclipse 3.2 development environment

Eclipse is an Integrated Development Environment (IDE). The following instructions were applied to Eclipse version 3.2RC7. If you are using a different version, slight adjustments to the instructions may be required. These instructions convey the general idea on how to get up and running with JTiger in any development environment and so they may be of value, even if you use some other environment such as Netbeans.


These instructions use $PROJECT_HOME to specify your project directory. Where you see this term in the instructions, replace it with the actual value of your project directory.

  1. From the menu, select File -> New -> Project.

  2. Select Java Project and click Next.

  3. Give the project a name and location.

  4. Make sure the 1.5 JRE is selected and Click Next.

  5. Create a directory called '$PROJECT_HOME/lib'.

  6. Copy jtiger.jar to the directory called '$PROJECT_HOME/lib' and refresh the project.

  7. Right-click on the project and select 'Properties'.

  8. Go to the section called 'Java Build Path'.

  9. Go to the tab called 'Libraries'.

  10. Select 'Add JARs...'.

  11. Navigate to jtiger.jar in the directory caled '$PROJECT_HOME/lib' and click OK.

  12. Ensure that the Compiler compliance level is set to 5.0.

  13. In the top level, $PROJECT_HOME, create two source files; org/jtiger/samples/Sum.java and org/jtiger/samples/TestSum.java.

  14. Write a method called 'sum' in both classes; the implementation in class Sum, and the testing of the implementation in class TestSum.

  15. On the 'sum' method in TestSum, add the annotation @Test, which can be imported from org.jtiger.framework.

  16. From the menu, select Run -> Run.

  17. Select Java Application, click the 'New' button.

  18. Select a name for the new configuration.

  19. Select "Include libraries when searching for a main class".

  20. Set the 'Main class' to 'org.jtiger.framework.FixturesRunnerMain' to execute the JTiger command line environment.

  21. Go to the 'Arguments' tab.

  22. Set the 'Program arguments' to '-fixtureClasses org.jtiger.samples.TestSum' to run the test fixture under the JTiger command line environment.

  23. Click Run.

  24. Observe the results of your test execution as a summary in the Console (standard output).

  25. From the menu, select Run -> Run.

  26. Change the 'Program arguments' to output a HTML report with the value '-fixtureClasses org.jtiger.samples.TestSum -result ~html -resultParams report' and click Run.

  27. Refresh the project.

  28. Observe the results of your test execution as a HTML report in the directory called '$PROJECT_HOME/report'.


You can download the sample project from here. Simply extract the zip file and import the project into your workspace as an existing project.

Copyright © 2006 Ricky Clarkson
Build Number: 0376
Build Time: 2006-07-28 01:50.16.218 CET (GMT +1)