Re: Maven, Eclipse, & Junit

2006-10-04 Thread Arnaud Bailly
Douglas Ferguson <[EMAIL PROTECTED]> writes:

> When running unit tests from eclipse I can’t resolve my test resources
> because they are placed in test-classes.

Just add src/test/resources to your tests classpath:
In eclipse :
  Run.. > Classpath > Advanced > Add folder 

regards
-- 
OQube < software engineering \ génie logiciel >
Arnaud Bailly, Dr.
\web> http://www.oqube.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re : Maven, Eclipse, & Junit

2006-10-03 Thread olivier galaup
Hello,
When you compile under eclipse the maven filtering is off. Before to run yours 
tests, you have to filter yours properties using this mvn command:
mvn resources:resources resources:testResources

- Message d'origine 
De : Douglas Ferguson <[EMAIL PROTECTED]>
À : users 
Envoyé le : Mardi, 3 Octobre 2006, 21h55mn 38s
Objet : Maven, Eclipse, & Junit

When running unit tests from eclipse I can’t resolve my test resources
because they are placed in test-classes.

 

How have folks dealt with this?

 

I know this is off topic ( if you know of a good forum please point me),
but is there a way to run 1 test method from a test case using eclipse,
like idea does?

 

D-













___ 
Découvrez un nouveau moyen de poser toutes vos questions quel que soit le sujet 
! 
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos 
expériences. 
http://fr.answers.yahoo.com