Separating JUnit Test classes from main project
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   vivs_online
Posted On:   Wednesday, March 21, 2007 04:25 AM

Hi
I am developing a Java project using Eclipse and if i use the Junit wizard in Eclipse it creates the test.java inside the package that i want to test. is there some way to have my JUnit as a seperate project and NOT a part of my main project.

Thanx in Advance
Vivs

Re: Separating JUnit Test classes from main project

Posted By:   soumya_s  
Posted On:   Friday, May 4, 2007 09:04 AM

I changed the source folder name to my unittests folder and gave a package name for the testcase class to be generated. Eclipse Wizard then places the testcase class away from the source files in a different folder.


In the testcase class, however, remember to import your sources.

About | Sitemap | Contact