Trunk Build and Test Failure

43 views
Skip to first unread message

Maximilian Raditya

unread,
May 12, 2011, 5:02:01 AM5/12/11
to NHibernate Development Group
When I tried to build and test trunk, after NH 3.2 Alpha 3 released, it seems it failed with 13 errors. Most of them failed with connection.driver_class issue of being not set. For example:
 
Test Error : NHibernate.Test.DialectTest.DialectFixture.CurrentTimestampSelection
NHibernate.HibernateException : The connection.driver_class must be specified in the NHibernate configuration section.
 
Is this a known issue? What am I supposed to do in order to have a success build and test release?
 
 
 
 
--
Regards,
 
Maximilian Haru Raditya
 

Fabio Maulo

unread,
May 12, 2011, 10:08:34 AM5/12/11
to nhibernate-...@googlegroups.com
modify your config?

--
Fabio Maulo 

Maximilian Raditya

unread,
May 13, 2011, 2:17:08 AM5/13/11
to nhibernate-...@googlegroups.com
I've modified nhibernate-properties.xml in build-common folder to use SQL Server Dev instead of Express, Fabio. The build itself run fine, also other tests seems running well, but only 13 or so tests failed with such exception. This happens after I've updated the trunk to r5810. Try it with r5815 results the same exception in the test. Also clean checkout doesn't make any difference. FYI, I use ShowBuildMenu option D and G.
 
IIRC, I didn't make any configuration changes in my notebook in the past two weeks. Two weeks or last week build and test seemed just fine.

Maximilian Raditya

unread,
May 18, 2011, 6:31:49 PM5/18/11
to nhibernate-...@googlegroups.com
OK, I think I've found the cause.
 
It's the connection.driver_class that's been missing in App.config in NHibernate.Test. It's introduced in r5759. For some reasons I don't understand, (only) some tests rely on that configuration file, for example:
- NHibernate.Test.DialectTest.DialectFixture.CurrentTimestampSelection
- NHibernate.Test.DialectTest.MsSqlDialectFixture.DialectFixture.CurrentTimestampSelection
- NHibernate.Test.Legacy.FooBarTest.UserProvidedConnection
- NHibernate.Test.NHSpecificTest.GetSetHelperFixture.TestDefaultValue
- etc.
 
Thus, the solution is simply by adding (back) the following line in that configuration file:
 
<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
 
Also, since I want to use Sql2008ClientDriver for the tests, I have to modify NHibernate.TestDatabaseSetup.DatabaseSetup.DatabaseSetup() by adding the following line:
 
SetupMethods.Add("NHibernate.Driver.Sql2008ClientDriver", SetupSqlServer);
 
And now, all tests are running happily again :D.
 
 
 
 
--
Regards,

Maximilian Haru Raditya


 
Reply all
Reply to author
Forward
0 new messages