JUNIT very slow.......



I have a small program I build as a stand-alone (i.e. as main method)
and as a junit test. I am using Apache Ant. When run as the Junit
test it takes bloody long time to ready itself before running -- on
the order of 1-2 minutes!! The total size of the library I am building
against is about 1.5M (class files).

I also see the available memory on my system going way down and
computer coming to a halt -- yuck. No such issues when run as a
standalone though -- runs as fast as I'd expect. My thought is that it
is not the inefficiency of my code but rather something Junit task is
doing internally. But maybe I am wrong.

Any thoughts on what is causing the long delay under Junit? Any way to
improve??

Thanks.

.



Relevant Pages

  • Re: JUNIT questions
    ... code (which is flawless and works). ... flashed red at me and this is where I'm stuck. ... Are you running your JUnit test case from inside an IDE? ...
    (comp.lang.java.programmer)
  • JUnit problem
    ... I'm trying to run a JUnit test in Eclipse 3.1. ... the version of the JUnit plugin ...
    (comp.lang.java.programmer)
  • Re: what is assertion in java?
    ... it is possibly better to have a testing framework in place. ... write a JUnit test that ensures that a particular method is never called with a null value? ... Having code with asserts can be very helpful, ...
    (comp.lang.java)