wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes how set working directory for eclipse plugin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "how set working directory for eclipse plugin" Watch "how set working directory for eclipse plugin" New topic
Author

how set working directory for eclipse plugin

Zeca Pistolas
Greenhorn

Joined: Dec 08, 2011
Posts: 1
Hi,

hadas yaari wrote:Hi Jeanne,
... the unit test have to run in the user's project environment because it tests the project classes.


I have a Eclipse Plugin that use JUnitCore to run some JUnit test and runs ok.

But when a JUnit test needs a file with some input or confs, etc.... the JUnitCore cannot run correctly because it points to my home folder instead of project folder.

How can I set the Unit Test or JUnitCore to run in the user's project environment?


--
Thanks in advance,
ZecaPistolas
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30130
    
150

Do your unit tests need a property or the plugin itself?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
wood burning stoves
 
subject: how set working directory for eclipse plugin
 
Similar Threads
Junit on Eclipse
How to run UT in Eclipse/Maven
Testing Eclipse Plugin
System Tests
Runnig test files with JUnit.core.run