Jump to content

Making A Tool For Runnig Junit On Jcreator

  • Please log in to reply
1 reply to this topic

#1 Mjordan



  • Members
  • Pip
  • 2 posts

Posted 14 October 2007 - 01:15 AM

I want to add a tool on JCreator that runs JUnit and tests my codes.

Could someone tell me how to do this?

#2 ham90mack


    Advanced Member

  • Members
  • PipPipPip
  • 937 posts

Posted 14 October 2007 - 05:56 PM

You are not supposed to ask questions in this section of the forum.  Read the section's description next time...

JUnit appears to be a Java library.  To use it in a project, you must first set it up as a library in JCreator.
  1. Open a project in JCreator and go to Project>Project Settings...
  2. Go to the Required Libraries tab and click New...
  3. Name the new library JUnit.
  4. Under the classes tab, click on Add>Add Archive...
  5. Find where you put JUnit.jar on your harddrive and add it.
  6. Optionally, if you have the source code and documentation for JUnit on your computer, add them under their respective tabs.
  7. Press OK.
Whenever you have a project that needs to use JUnit, go to Project>Project Settings..., go to the Required Libraries tab, and check the box next to JUnit.

Resistance may be futile,
But capacitance has potential.