wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant with JUnit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant with JUnit" Watch "Ant with JUnit" New topic
Author

Ant with JUnit

Tiago Fernandez
Ranch Hand

Joined: May 16, 2003
Posts: 167
Hey folks,
I'm wonderin' if you know some way to write a task that compile and run a bunch of JUnit tests that is spread into different packages. When I put all my tests into a specific package or make a TestSuite that encloses all of them it works fine, but my problem is that I got unit tests named as Test*** all over the application. I was thinkin' if is possible to write a test that look for any test class from base directory that begins with the string "Test". Anybody can help me?
Tks a lot!


Tiago Fernandez
http://www.tiago182.spyw.com/
Lewin Chan
Ranch Hand

Joined: Oct 10, 2001
Posts: 214

Pulled straight out of the latest ant documentation


I have no java certifications. This makes me a bad programmer. Ignore my post.
Tiago Fernandez
Ranch Hand

Joined: May 16, 2003
Posts: 167
Thanks man, I will try it this monday and take a look at the documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant with JUnit