-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: JUnit testing speed
PostPosted: Wed Nov 12, 2003 12:46 pm 
Newbie

Joined: Wed Nov 12, 2003 12:42 pm
Posts: 1
I'm currently having a problem with testing speed with hibernate.

You see, I have a large, large number of tests (which is a good thing), but when I run them through ant, I have to wait for the JVM to initialize hibernate for every test. What this ends up meaning is that I have to wait another 6 seconds or so on every test in order for for the tests to run.

If I put them manually into a suite, or I run with jvm unforked, I get almost twice as fast, however, in these cases I often run out of memory (in fact I do, just about every time).

So, my question out there is if anyone has any experience making hibernate junit tests run any faster?

Thanks,

marc


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 12, 2003 12:49 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Take a look at the freshly re-worked test framework in the current Hibernate 2.1 CVS (v21branch). It was designed especially for speed. There is an abstract superclass that you might be able to reuse.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.