The visual studio build and the build options from the build menu
don't generate the exact same output in the exact same places. I
suspect you need to build from within VS to make the nunit gui work. I
haven't tried myself, as I use a VS extension to run the test.

/Oskar


2013/1/10 Don <[email protected]>:
> Oskar,
>
> I set the solution up for VS using showbuildmenu option A, built the
> solution using showbuildmenu option E, added the file you indicated, opened
> the project in VS, opened the project in the NUnit GUI, attached the VS
> debugger to NUnit, and I got the following exception:
>
> {"Could not find the dialect in the configuration"}
> {System.InvalidOperationException}
>    at NHibernate.Dialect.Dialect.GetDialect(IDictionary`2 props) in
> C:\path\to\\nhibernate-core-3.2.0GA\src\NHibernate\Dialect\Dialect.cs:line
> 175
>
> Thanks,
>
>     Don
>
> On Thursday, January 10, 2013 4:00:57 AM UTC-5, Oskar Berggren wrote:
>>
>> 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 view this discussion on the web visit
> https://groups.google.com/d/msg/nhusers/-/ZEfc5m3fAPkJ.
>
> 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.

-- 
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.

Reply via email to