• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ant 1.7 + Junit 4 problems

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Having some problems with configuring junit 4 in ant 1.7.
This is how the target looks like:

This is the exception:

Is there something specific i need to think about when using these things?
Have "wasted" an entire work day trying to figure this out.

// Gorby
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you read the documentation? It explicitly states that the name attribute is a classname, not a file name. The fact that you're getting a ClassNotFoundException should also be a clue.

The docs also explain what to do if you want to run several tests (namely, use the <batchtest> tag).
[ September 18, 2008: Message edited by: Ulf Dittmer ]
 
Bartender
Posts: 2661
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The test name attribute expects a Java class.
If you look at the examples, you can see that a valid classname like my.test.TestCase is expected.

You are passing C:\client\test\AllTests.*
That is not a valid Java class. That is a dos filemask.

To do what you want to do, please have a look at the batchtest example found on the same link given above.

Regards, Jan

[ah! parallel posts]
[ September 18, 2008: Message edited by: Jan Cumps ]
 
We noticed he had no friends. So we gave him this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic