User: mzywitza
Date: 2010/02/05 09:10 AM

Added:
 /ActiveRecord/trunk/
  buildwithsqlite.cmd

Modified:
 /ActiveRecord/trunk/src/Castle.ActiveRecord.Linq.Tests/
  ActiveRecordLinqTestCase.cs
 /ActiveRecord/trunk/src/Castle.ActiveRecord.Tests/
  App.config, DifferentDatabaseScopeTestCase.cs, SessionScopeTestCase.cs, 
SimpleQueryWithParameterTypesTestCase.cs, TransactionScopeTestCase.cs
 /ActiveRecord/trunk/src/Castle.ActiveRecord.Tests/Validation/
  ValidationTestCase.cs

Log:
 Categorized tests to enable testing with Sqlite.

File Changes:

Directory: /ActiveRecord/trunk/src/Castle.ActiveRecord.Linq.Tests/
==================================================================

File [modified]: ActiveRecordLinqTestCase.cs
Delta lines: +9 -1
===================================================================

--- ActiveRecord/trunk/src/Castle.ActiveRecord.Tests/App.config 2010-02-02 
21:02:08 UTC (rev 6732)
+++ ActiveRecord/trunk/src/Castle.ActiveRecord.Tests/App.config 2010-02-05 
16:10:27 UTC (rev 6733)
@@ -19,8 +19,16 @@
                        <add key="proxyfactory.factory_class" 
value="NHibernate.ByteCode.Castle.ProxyFactoryFactory, 
NHibernate.ByteCode.Castle" />
                        <add key="query.factory_class" 
value="NHibernate.Hql.Ast.ANTLR.ASTQueryTranslatorFactory, NHibernate" />
                </config>
+<!--    <config>-->
+<!--      <add key="connection.driver_class" 
value="NHibernate.Driver.SQLite20Driver" />-->
+<!--      <add key="dialect"                 
value="NHibernate.Dialect.SQLiteDialect" />-->
+<!--      <add key="connection.provider"     
value="NHibernate.Connection.DriverConnectionProvider" />-->
+<!--      <add key="connection.connection_string" value="Data 
Source=test.db;Version=3;New=true;Enlist=N;Journal Mode=Off;Cache Size=2000000" 
/>-->
+<!--      <add key="proxyfactory.factory_class" 
value="NHibernate.ByteCode.Castle.ProxyFactoryFactory, 
NHibernate.ByteCode.Castle" />-->
+<!--      <add key="query.factory_class" 
value="NHibernate.Hql.Ast.ANTLR.ASTQueryTranslatorFactory, NHibernate" />-->
+<!--    </config>-->
 
-               <config type="Castle.ActiveRecord.Tests.Model.Test2ARBase, 
Castle.ActiveRecord.Tests">
+    <config type="Castle.ActiveRecord.Tests.Model.Test2ARBase, 
Castle.ActiveRecord.Tests">
                        <add key="connection.driver_class" 
value="NHibernate.Driver.SqlClientDriver" />
                        <add key="dialect"                 
value="NHibernate.Dialect.MsSql2000Dialect" />

Directory: /ActiveRecord/trunk/src/Castle.ActiveRecord.Tests/
=============================================================

File [modified]: App.config
Delta lines: +8 -3
===================================================================

--- 
ActiveRecord/trunk/src/Castle.ActiveRecord.Tests/DifferentDatabaseScopeTestCase.cs
  2010-02-02 21:02:08 UTC (rev 6732)
+++ 
ActiveRecord/trunk/src/Castle.ActiveRecord.Tests/DifferentDatabaseScopeTestCase.cs
  2010-02-05 16:10:27 UTC (rev 6733)
@@ -41,7 +41,7 @@
                        Recreate();
                }
 
-               [Test, Category("mssql")]
+               [Test, Category("mssql")][Category("nosqlite")]
                public void SimpleCase()
                {
                        Blog blog = new Blog();
@@ -70,7 +70,7 @@
                        Assert.AreEqual( 1, blogs2.Length );
                }
 
-               [Test, Category("mssql")]
+               [Test, Category("mssql")][Category("nosqlite")]
                public void UsingSessionScope()
                {
                        ISession session1, session2;
@@ -113,6 +113,7 @@
                }
 
                [Test, Category("mssql")]
+               [Category("nosqlite")]
                public void UsingTransactionScope()
                {
                        SqlConnection conn = CreateSqlConnection();
@@ -168,6 +169,7 @@
                }
 
                [Test, Category("mssql")]
+               [Category("nosqlite")]
                public void UsingTransactionScopeWithRollback()
                {
                        SqlConnection conn = CreateSqlConnection();
@@ -223,8 +225,9 @@
                        Assert.IsNotNull( blogs2 );
                        Assert.AreEqual( 0, blogs2.Length );
                }
-               
+
                [Test, Category("mssql")]
+               [Category("nosqlite")]
                public void MoreThanOneConnectionWithinTheSessionScope()
                {
                        SqlConnection conn = CreateSqlConnection();
@@ -256,6 +259,7 @@
                }
 
                [Test, Category("mssql")]
+               [Category("nosqlite")]
                public void UsingSessionAndTransactionScope()
                {
                        SqlConnection conn = CreateSqlConnection();
@@ -333,6 +337,7 @@
                }
 
                [Test, Category("mssql")]
+               [Category("nosqlite")]
                public void SequenceOfTransactions()
                {

File [modified]: DifferentDatabaseScopeTestCase.cs
Delta lines: +3 -0
===================================================================

--- ActiveRecord/trunk/src/Castle.ActiveRecord.Tests/SessionScopeTestCase.cs    
2010-02-02 21:02:08 UTC (rev 6732)
+++ ActiveRecord/trunk/src/Castle.ActiveRecord.Tests/SessionScopeTestCase.cs    
2010-02-05 16:10:27 UTC (rev 6733)
@@ -178,6 +178,7 @@
                }
 
                [Test]
+               [Category("nosqlite")]
                public void NestedSessionScopeAndLazyLoad()
                {
                        ActiveRecordStarter.Initialize( GetConfigSource(), 
typeof(ProductLazy), typeof(CategoryLazy) );
@@ -226,6 +227,7 @@
                }
 
                [Test]
+               [Category("nosqlite")]
                public void 
AnExceptionInvalidatesTheScopeAndPreventItsFlushing()
                {
                        ActiveRecordStarter.Initialize(GetConfigSource(), 
typeof(Post), typeof(Blog));
@@ -327,6 +329,7 @@
                }
 
                [Test]
+               [Category("nosqlite")]
                public void DifferentSessionScopesUseDifferentCaches()
                {

File [modified]: SessionScopeTestCase.cs
Delta lines: +1 -0
===================================================================

--- 
ActiveRecord/trunk/src/Castle.ActiveRecord.Tests/SimpleQueryWithParameterTypesTestCase.cs
   2010-02-02 21:02:08 UTC (rev 6732)
+++ 
ActiveRecord/trunk/src/Castle.ActiveRecord.Tests/SimpleQueryWithParameterTypesTestCase.cs
   2010-02-05 16:10:27 UTC (rev 6733)
@@ -59,6 +59,7 @@
                }
 
                [Test]
+               [Category("nosqlite")]
                public void TestExceptionNotThrownWhenOverrideProvided()
                {

File [modified]: SimpleQueryWithParameterTypesTestCase.cs
Delta lines: +3 -0
===================================================================

--- 
ActiveRecord/trunk/src/Castle.ActiveRecord.Tests/TransactionScopeTestCase.cs    
    2010-02-02 21:02:08 UTC (rev 6732)
+++ 
ActiveRecord/trunk/src/Castle.ActiveRecord.Tests/TransactionScopeTestCase.cs    
    2010-02-05 16:10:27 UTC (rev 6733)
@@ -227,6 +227,7 @@
                }
 
                [Test]
+               [Category("nosqlite")]
                public void 
NestedTransactionScopesHaveCorrectTransactionContexts()
                {
                        ActiveRecordStarter.Initialize(GetConfigSource(), 
typeof(Post), typeof(Blog));
@@ -304,6 +305,7 @@
                }
 
                [Test]
+               [Category("nosqlite")]
                public void LotsOfNestedTransactionWithDifferentConfigurations()
                {
                        ActiveRecordStarter.Initialize(GetConfigSource(), 
typeof(Post), typeof(Blog));
@@ -381,6 +383,7 @@
                }
 
                [Test]
+               [Category("nosqlite")]
                public void MixingSessionScopeAndTransactionScopes()
                {

File [modified]: TransactionScopeTestCase.cs
Delta lines: +1 -0
===================================================================

--- 
ActiveRecord/trunk/src/Castle.ActiveRecord.Tests/Validation/ValidationTestCase.cs
   2010-02-02 21:02:08 UTC (rev 6732)
+++ 
ActiveRecord/trunk/src/Castle.ActiveRecord.Tests/Validation/ValidationTestCase.cs
   2010-02-05 16:10:27 UTC (rev 6733)
@@ -375,6 +375,7 @@
                }
 
                [Test]
+               [Category("nosqlite")]
                public void IsUniqueWithSessionScope()
                {

Directory: /ActiveRecord/trunk/src/Castle.ActiveRecord.Tests/Validation/
========================================================================

File [modified]: ValidationTestCase.cs
Delta lines: +0 -0
===================================================================

Directory: /ActiveRecord/trunk/
===============================

File [added]: buildwithsqlite.cmd
Delta lines: +2 -1
===================================================================

--- 
ActiveRecord/trunk/src/Castle.ActiveRecord.Linq.Tests/ActiveRecordLinqTestCase.cs
   2010-02-02 21:02:08 UTC (rev 6732)
+++ 
ActiveRecord/trunk/src/Castle.ActiveRecord.Linq.Tests/ActiveRecordLinqTestCase.cs
   2010-02-05 16:10:27 UTC (rev 6733)
@@ -199,7 +199,7 @@
                        }
                }
 
-               [Test]
+               [Test][Category("nosqlite")]
                public void UsingLinqFromNonLinqBaseClass()
                {
                        ActiveRecordStarter.Initialize(GetConfigSource(), 
typeof(Widget));
@@ -230,6 +230,7 @@
 
 
                [Test]
+               [Category("nosqlite")]
                public void UsingLinqViaSessionScopeVariable()
                {

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Commits" 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/castle-project-commits?hl=en.

Reply via email to