Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant with JUnit

 
Tiago Fernandez
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Lewin Chan
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Pulled straight out of the latest ant documentation
 
Tiago Fernandez
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks man, I will try it this monday and take a look at the documentation
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic