• 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

JMockit & running ant from eclipse - Agent Jar not found

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I've been trying to unit test a massive code base that contains copious amounts of static methods, and found jmockit to be very useful for this. I've run into a problem where if I try to run the ant build.xml from within eclipse I am told that there is no agent jar, so the advanced features of jmockit cannot be used.

I have tried putting the javaagent parameter in the vmargs that ant uses in junit tests to no avail.

I see no documentation that addresses this particular issue with the combination of ant and eclipse.

Anyone have any clues? Do I need to specify the vmargs somewhere else?

Thanks for your time,

-Ian
 
Hey, sticks and stones baby. And maybe a wee mention of my stuff:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic