Re: running junit test via ant using antrun plugin

2009-07-15 Thread ZJacobson

I didn't see junit 3 in the dependency tree.  I'm just using junit 4.


javabrett wrote:
 
 I've not dealt with this before so take this advice with a grain of 
 salt, but here's something to try: Run mvn dependency:tree to see if 
 another dependency elsewhere is relying on junit 3.x - maybe you can fix 
 or exclude it.
 
 Best
 Brett
 
 ZJacobson wrote:
 Hi-

 I must be doing something really stupid.  I can't get ant to use junit 4
 when invoked via the antrun plugin.  My tests all fail because the test
 runner can't find any tests (since none of the tests extend TestCase). If
 I
 just run the tests via the ant script, the tests run and pass.  But when
 I
 run via maven (which antcall's the same ant script) the test don't run. 
 Is
 there a way to figure out why it seems that ant is only finding junit
 3.x? 
 mvn -X doesn't give me ant -debug.

 This is the configuration of maven-antrun-plugin:
  executions
   execution
 idant-tests/id
 phasetest/phase
 configuration
   tasks
 ant antfile=${basedir}/build.xml
   target name=test/
 /ant
   /tasks
 /configuration
 goals
   goalrun/goal
 /goals
   /execution
   /executions

   dependencies
  dependency
   groupIdant/groupId
   artifactIdant-nodeps/artifactId
   version1.7.0/version
  /dependency
  dependency
   groupIdant/groupId  
   artifactIdant-junit/artifactId  
   version1.6.5/version  
  /dependency  
  dependency  
   groupIdjunit/groupId  
   artifactIdjunit/artifactId  
   version4.4/version
  /dependency
   /dependencies

 Thanks-
 Zak

   
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/running-junit-test-via-ant-using-antrun-plugin-tp24382461p24501748.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



running junit test via ant using antrun plugin

2009-07-07 Thread ZJacobson

Hi-

I must be doing something really stupid.  I can't get ant to use junit 4
when invoked via the antrun plugin.  My tests all fail because the test
runner can't find any tests (since none of the tests extend TestCase). If I
just run the tests via the ant script, the tests run and pass.  But when I
run via maven (which antcall's the same ant script) the test don't run.  Is
there a way to figure out why it seems that ant is only finding junit 3.x? 
mvn -X doesn't give me ant -debug.

This is the configuration of maven-antrun-plugin:
 executions
  execution
idant-tests/id
phasetest/phase
configuration
  tasks
ant antfile=${basedir}/build.xml
  target name=test/
/ant
  /tasks
/configuration
goals
  goalrun/goal
/goals
  /execution
  /executions

  dependencies
 dependency
  groupIdant/groupId
  artifactIdant-nodeps/artifactId
  version1.7.0/version
 /dependency
 dependency
  groupIdant/groupId  
  artifactIdant-junit/artifactId  
  version1.6.5/version  
 /dependency  
 dependency  
  groupIdjunit/groupId  
  artifactIdjunit/artifactId  
  version4.4/version
 /dependency
  /dependencies

Thanks-
Zak

-- 
View this message in context: 
http://www.nabble.com/running-junit-test-via-ant-using-antrun-plugin-tp24382461p24382461.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org