-->
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.  [ 4 posts ] 
Author Message
 Post subject: Compiling Hibernate - Tests Failed on Trunk
PostPosted: Mon Jun 08, 2009 4:48 pm 
Newbie

Joined: Mon Jun 08, 2009 4:39 pm
Posts: 2
Hello,

We're using Hibernate but we would like to add a feature (to allow us to collect more statistics than Hibernate currently does). Unfortunately I can't seem to compile the Hibernate source that I've checked out. Some of the tests are failing. The source should compile, as I haven't modified it yet. Am I doing it wrong? Here's what I've tried:
then I tried the following:
Code:
svn co http://anonsvn.jboss.org/repos/hibernate/core/trunk
cd trunk
mvn clean install

I have tried this with both
Code:
svn co http://anonsvn.jboss.org/repos/hibernate/core/branches/Branch_3_2
svn co http://anonsvn.jboss.org/repos/hibernate/core/branches/Branch_3_3

as well with similar errors.

The result is:
Quote:
...lots of tests being run here...
Running org.hibernate.test.idgen.enhanced.table.HiLoTableTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.038 sec

Results :
Failed tests:
testProxyReuse(org.hibernate.test.legacy.ParentChildTest)
testDuplicateImplicitJoinInSelect(org.hibernate.test.hql.HQLTest)

Tests in error:
testLoadingAndSerializationOfConfiguration(org.hibernate.test.cfg.ConfigurationPerformanceTest)
testSessionFactoryCreationTime(org.hibernate.test.cfg.ConfigurationPerformanceTest)
testOneToOne(org.hibernate.test.legacy.MultiTableTest)
testReplicate(org.hibernate.test.legacy.ParentChildTest)
testComplexCriteria(org.hibernate.test.legacy.ParentChildTest)
testLoadAfterNonExists(org.hibernate.test.legacy.ParentChildTest)
testOrderBy(org.hibernate.test.legacy.FooBarTest)
testDisconnect(org.hibernate.test.legacy.FooBarTest)
testVeto(org.hibernate.test.legacy.FooBarTest)

Tests run: 1446, Failures: 2, Errors: 9, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to /usr/local/google/home/alexlevenson/hibernate/trunk/testsuite/target/surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 minutes 42 seconds
[INFO] Finished at: Thu Jun 04 16:07:00 PDT 2009
[INFO] Final Memory: 86M/524M
[INFO] ------------------------------------------------------------------------


I have tried it a few times over a period of about a week and the tests that fail vary from time to time. Am I grabbing the wrong source? Is there a stable branch I should be grabbing?

Thanks in advance,
Alex Levenson


Top
 Profile  
 
 Post subject: Re: Compiling Hibernate - Tests Failed on Trunk
PostPosted: Tue Jun 09, 2009 4:30 am 
Newbie

Joined: Tue Jun 09, 2009 1:34 am
Posts: 6
Location: india
ur connecting to actual database from ur test cases or connecting to the mock database check it first...

_________________
Ram


Top
 Profile  
 
 Post subject: Re: Compiling Hibernate - Tests Failed on Trunk
PostPosted: Tue Jun 09, 2009 4:06 pm 
Newbie

Joined: Mon Jun 08, 2009 4:39 pm
Posts: 2
I'm afraid that's not very much help. They aren't my test cases, they are the hibernate test cases. This is an attempt to compile hibernate out-of-the-box. Thanks.


Top
 Profile  
 
 Post subject: Re: Compiling Hibernate - Tests Failed on Trunk
PostPosted: Wed Jun 10, 2009 9:33 am 
Newbie

Joined: Tue Jun 09, 2009 1:34 am
Posts: 6
Location: india
hibernate test cases means it's having any built in function to run the test case.........

am unable to get ur question......... can u explain little bit clear......

_________________
Ram


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.