2013/1/9 Don <[email protected]>:
> I'm trying to run the unit tests, and I keep getting the following for each
> test class:
>
> NHibernate.Test.Linq.AggregateTests:
> Parent SetUp failed in LinqReadonlyTestsContext
Try to get more error information from this.
>
> I have created a new database, nhibernate, with changing the ./SqlExpress to
> localhost in nhibernate.connection.connection_string in
> build-common\nhibernate-properties.xml and connection_string in
> src\NHibernate.Test\app.config.
Revert those changes.
Then create a file src\NHibernate.test\hibernate.cfg.xml with contents
similar to this:
<?xml version="1.0" encoding="utf-8"?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" >
<session-factory name="NHibernate.Test">
<property
name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
<property name="connection.connection_string">
Server=(local);initial catalog=nhibernate;Integrated
Security=SSPI
</property>
<property
name="dialect">NHibernate.Dialect.MsSql2008Dialect</property>
</session-factory>
</hibernate-configuration>
This should take effect when tests are run either using a visual
studio plugin or by garelease/showbuildmenu (the latter of which can
also generate AssemblyInfo.cs for VS if you hadn't discovered that).
Since this doesn't change a file tracked by git, it won't pester you
about uncommitted changes.
/Oskar
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.