• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ant junit

 
vik ar
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. Does anyone know how I can debug the java code when executing junit tests from an ant script? I am using eclipse - right click on build file --> debug as --> ant build
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would you want to? Just debug the test that's failing.
 
vik ar
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have packaged all of my unit tests in a jar and all of the test classes are reading files. The code for reading files in a jar is different from the code for reading files not in a jar
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure how that's related to your question, but ok.
 
vik ar
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
debugging the unit test in isolation (i.e. without ant script) will require me to make changes to the code to read files ...
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34863
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vik ar wrote:debugging the unit test in isolation (i.e. without ant script) will require me to make changes to the code to read files ...

Why? Can't you write a class that calls the code in the jar?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic