From: <pa...@us...> - 2011-03-09 03:42:46
|
Revision: 5445 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5445&view=rev Author: patearl Date: 2011-03-09 03:42:40 +0000 (Wed, 09 Mar 2011) Log Message: ----------- Tests: Added a debug line to help resolve a build server problem. Modified Paths: -------------- trunk/nhibernate/src/NHibernate.Test/TestCase.cs Modified: trunk/nhibernate/src/NHibernate.Test/TestCase.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/TestCase.cs 2011-03-08 19:27:30 UTC (rev 5444) +++ trunk/nhibernate/src/NHibernate.Test/TestCase.cs 2011-03-09 03:42:40 UTC (rev 5445) @@ -103,6 +103,8 @@ } catch (Exception e) { + // This line just added as a test, since there is no logged output on build server. + Console.WriteLine("Text Fixture Setup Exception: " + e); log.Error("Error while setting up the test fixture", e); throw; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pa...@us...> - 2011-03-24 02:51:23
|
Revision: 5517 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5517&view=rev Author: patearl Date: 2011-03-24 02:51:16 +0000 (Thu, 24 Mar 2011) Log Message: ----------- Don't run teardown if we didn't set things up. Modified Paths: -------------- trunk/nhibernate/src/NHibernate.Test/TestCase.cs Modified: trunk/nhibernate/src/NHibernate.Test/TestCase.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/TestCase.cs 2011-03-24 02:50:41 UTC (rev 5516) +++ trunk/nhibernate/src/NHibernate.Test/TestCase.cs 2011-03-24 02:51:16 UTC (rev 5517) @@ -120,7 +120,10 @@ [TestFixtureTearDown] public void TestFixtureTearDown() { - DropSchema(); + if (!AppliesTo(Dialect)) + return; + + DropSchema(); Cleanup(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pa...@us...> - 2011-07-22 02:13:09
|
Revision: 5988 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5988&view=rev Author: patearl Date: 2011-07-22 02:13:03 +0000 (Fri, 22 Jul 2011) Log Message: ----------- Tests: Clean up schema if session factory can't be created. Modified Paths: -------------- trunk/nhibernate/src/NHibernate.Test/TestCase.cs Modified: trunk/nhibernate/src/NHibernate.Test/TestCase.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/TestCase.cs 2011-07-21 16:06:45 UTC (rev 5987) +++ trunk/nhibernate/src/NHibernate.Test/TestCase.cs 2011-07-22 02:13:03 UTC (rev 5988) @@ -84,6 +84,7 @@ [TestFixtureSetUp] public void TestFixtureSetUp() { + bool schemaCreated = false; try { Configure(); @@ -93,6 +94,7 @@ } CreateSchema(); + schemaCreated = true; BuildSessionFactory(); if (!AppliesTo(sessions)) { @@ -103,6 +105,9 @@ } catch (Exception e) { + if (schemaCreated) + DropSchema(); + Cleanup(); log.Error("Error while setting up the test fixture", e); throw; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pa...@us...> - 2011-07-22 05:25:07
|
Revision: 5989 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5989&view=rev Author: patearl Date: 2011-07-22 05:25:00 +0000 (Fri, 22 Jul 2011) Log Message: ----------- Tests: Use standard cleanup pattern for test setup failures. Modified Paths: -------------- trunk/nhibernate/src/NHibernate.Test/TestCase.cs Modified: trunk/nhibernate/src/NHibernate.Test/TestCase.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/TestCase.cs 2011-07-22 02:13:03 UTC (rev 5988) +++ trunk/nhibernate/src/NHibernate.Test/TestCase.cs 2011-07-22 05:25:00 UTC (rev 5989) @@ -84,7 +84,6 @@ [TestFixtureSetUp] public void TestFixtureSetUp() { - bool schemaCreated = false; try { Configure(); @@ -94,19 +93,22 @@ } CreateSchema(); - schemaCreated = true; - BuildSessionFactory(); - if (!AppliesTo(sessions)) + try { + BuildSessionFactory(); + if (!AppliesTo(sessions)) + { + Assert.Ignore(GetType() + " does not apply with the current session-factory configuration"); + } + } + catch + { DropSchema(); - Cleanup(); - Assert.Ignore(GetType() + " does not apply with the current session-factory configuration"); + throw; } } catch (Exception e) { - if (schemaCreated) - DropSchema(); Cleanup(); log.Error("Error while setting up the test fixture", e); throw; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |