dcsimg
Junit and Ant integration in intellij
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Leigh_Singer
Posted On:   Wednesday, November 13, 2002 04:56 AM

I want to run my junit tests from an ant script from within intellij. I have the following target in my build.xml However, despite having junit.jar, ant.jar, and optional.jar all in the lib directory of the IDEA installation, ant fails to recognise the tag and gives the following error: could not create task or type of type: junit I have proved my build file works with ant outside intellij. I have even tried replacing the jar files in the lib directory of my intellij installation with different versions of ant.jar, optional.jar and junit.jar. I am using build   More>>

I want to run my junit tests from an ant script from within intellij.


I have the following target in my build.xml



			



















However, despite having junit.jar, ant.jar, and optional.jar all in the lib directory of the IDEA installation, ant fails to recognise the tag and gives the following error:


could not create task or type of type: junit


I have proved my build file works with ant outside intellij. I have even tried replacing the jar files in the lib directory of my intellij installation with different versions of ant.jar, optional.jar and junit.jar. I am using build 672 of intellij.



Can anyone please advise me as to how I can get my ant script with junit tags to work from within intellij?



Thank you in anticipation!
Leigh :)

   <<Less

Re: Junit and Ant integration in intellij

Posted By:   Mike_DuVall  
Posted On:   Friday, December 6, 2002 07:48 AM

Leigh, I am having exactly the same problem. I tried the suggestion below of putting junit.jar in the ant home lib directory, but this did not work for me.

Leight, did you ever solve your problem?

Re: Junit and Ant integration in intellij

Posted By:   Damon_Farnham  
Posted On:   Wednesday, November 27, 2002 10:04 AM

Leigh:

I have successfully tested a similar solution by putting the junit.jar file in Ant's lib directory:



/lib/junit.jar



Worked like a champ.



Good luck,




Damon Farnham

Amgen, Inc.

dfarnham@amgen.com

About | Sitemap | Contact