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



On Fri, May 13, 2011 at 1:17 PM, Maximilian Raditya <[email protected]>wrote:

> 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.
>
>
>
>
> --
> Regards,
>
> Maximilian Haru Raditya
>
>
>
>
>
>
> On Thu, May 12, 2011 at 9:08 PM, Fabio Maulo <[email protected]> wrote:
>
>> modify your config?
>>
>> --
>> Fabio Maulo
>>
>>
>> El 12/05/2011, a las 06:02, Maximilian Raditya <[email protected]>
>> escribió:
>>
>> 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
>>
>>
>>
>
>
>

Reply via email to