* Added custom DatabaseTestAttribute to help separating unit tests from component tests.
parent
65dcfdf031
commit
a707fa7bea
|
@ -33,7 +33,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.MySQL.Tests
|
namespace OpenSim.Data.MySQL.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class MySQLAssetTest : BasicAssetTest
|
public class MySQLAssetTest : BasicAssetTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -33,7 +33,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernateMsSqlAssetTest : BasicAssetTest
|
public class NHibernateMsSqlAssetTest : BasicAssetTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -33,7 +33,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernateMsSqlEstateTest : BasicEstateTest
|
public class NHibernateMsSqlEstateTest : BasicEstateTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -33,7 +33,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernateMsSqlGridTest : BasicGridTest
|
public class NHibernateMsSqlGridTest : BasicGridTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -33,7 +33,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernateMsSqlInventoryTest : BasicInventoryTest
|
public class NHibernateMsSqlInventoryTest : BasicInventoryTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -33,7 +33,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernateMsSqlRegionTest : BasicRegionTest
|
public class NHibernateMsSqlRegionTest : BasicRegionTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -33,7 +33,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernateMsSqlUserTest : BasicUserTest
|
public class NHibernateMsSqlUserTest : BasicUserTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -33,7 +33,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernateMySQLAssetTest : BasicAssetTest
|
public class NHibernateMySQLAssetTest : BasicAssetTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -33,7 +33,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernateMySQLGridTest : BasicGridTest
|
public class NHibernateMySQLGridTest : BasicGridTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -33,7 +33,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernateMySQLInventoryTest : BasicInventoryTest
|
public class NHibernateMySQLInventoryTest : BasicInventoryTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -33,7 +33,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernateMySQLRegionTest : BasicRegionTest
|
public class NHibernateMySQLRegionTest : BasicRegionTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -33,7 +33,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernateMySQLUserTest : BasicUserTest
|
public class NHibernateMySQLUserTest : BasicUserTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -33,7 +33,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernateMySQLEstateTest : BasicEstateTest
|
public class NHibernateMySQLEstateTest : BasicEstateTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -33,7 +33,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernatePostgreSQLAssetTest : BasicAssetTest
|
public class NHibernatePostgreSQLAssetTest : BasicAssetTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -33,7 +33,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernatePostgreSQLEstateTest : BasicEstateTest
|
public class NHibernatePostgreSQLEstateTest : BasicEstateTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -33,7 +33,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernatePostgreSQLGridTest : BasicGridTest
|
public class NHibernatePostgreSQLGridTest : BasicGridTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -33,7 +33,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernatePostgreSQLInventoryTest : BasicInventoryTest
|
public class NHibernatePostgreSQLInventoryTest : BasicInventoryTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -33,7 +33,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernatePostgreSQLRegionTest : BasicRegionTest
|
public class NHibernatePostgreSQLRegionTest : BasicRegionTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -33,7 +33,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernatePostgreSQLUserTest : BasicUserTest
|
public class NHibernatePostgreSQLUserTest : BasicUserTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -34,7 +34,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernateSQLiteAssetTest : BasicAssetTest
|
public class NHibernateSQLiteAssetTest : BasicAssetTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -34,7 +34,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernateSQLiteEstateTest : BasicEstateTest
|
public class NHibernateSQLiteEstateTest : BasicEstateTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -34,7 +34,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernateSQLiteGridTest : BasicGridTest
|
public class NHibernateSQLiteGridTest : BasicGridTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -34,7 +34,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernateSQLiteInventoryTest : BasicInventoryTest
|
public class NHibernateSQLiteInventoryTest : BasicInventoryTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -34,7 +34,7 @@ using System.Reflection;
|
||||||
|
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernateSQLiteRegionTest : BasicRegionTest
|
public class NHibernateSQLiteRegionTest : BasicRegionTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -35,7 +35,7 @@ using System.Reflection;
|
||||||
namespace OpenSim.Data.NHibernate.Tests
|
namespace OpenSim.Data.NHibernate.Tests
|
||||||
{
|
{
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class NHibernateSQLiteUserTest : BasicUserTest
|
public class NHibernateSQLiteUserTest : BasicUserTest
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
|
@ -31,7 +31,7 @@ using OpenSim.Data.Tests;
|
||||||
|
|
||||||
namespace OpenSim.Data.SQLite.Tests
|
namespace OpenSim.Data.SQLite.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class SQLiteAssetTest : BasicAssetTest
|
public class SQLiteAssetTest : BasicAssetTest
|
||||||
{
|
{
|
||||||
public string file;
|
public string file;
|
||||||
|
|
|
@ -31,7 +31,7 @@ using OpenSim.Data.Tests;
|
||||||
|
|
||||||
namespace OpenSim.Data.SQLite.Tests
|
namespace OpenSim.Data.SQLite.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class SQLiteEstateTest : BasicEstateTest
|
public class SQLiteEstateTest : BasicEstateTest
|
||||||
{
|
{
|
||||||
public string file = "regiontest.db";
|
public string file = "regiontest.db";
|
||||||
|
|
|
@ -31,7 +31,7 @@ using OpenSim.Data.Tests;
|
||||||
|
|
||||||
namespace OpenSim.Data.SQLite.Tests
|
namespace OpenSim.Data.SQLite.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class SQLiteInventoryTest : BasicInventoryTest
|
public class SQLiteInventoryTest : BasicInventoryTest
|
||||||
{
|
{
|
||||||
public string file;
|
public string file;
|
||||||
|
|
|
@ -31,7 +31,7 @@ using OpenSim.Data.Tests;
|
||||||
|
|
||||||
namespace OpenSim.Data.SQLite.Tests
|
namespace OpenSim.Data.SQLite.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class SQLiteRegionTest : BasicRegionTest
|
public class SQLiteRegionTest : BasicRegionTest
|
||||||
{
|
{
|
||||||
public string file = "regiontest.db";
|
public string file = "regiontest.db";
|
||||||
|
|
|
@ -31,7 +31,7 @@ using OpenSim.Data.Tests;
|
||||||
|
|
||||||
namespace OpenSim.Data.SQLite.Tests
|
namespace OpenSim.Data.SQLite.Tests
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture, DatabaseTest]
|
||||||
public class SQLiteUserTest : BasicUserTest
|
public class SQLiteUserTest : BasicUserTest
|
||||||
{
|
{
|
||||||
public string file;
|
public string file;
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
namespace OpenSim.Data.Tests
|
||||||
|
{
|
||||||
|
[AttributeUsage(AttributeTargets.All,
|
||||||
|
AllowMultiple=false,
|
||||||
|
Inherited=true)]
|
||||||
|
public class DatabaseTestAttribute : CategoryAttribute
|
||||||
|
{
|
||||||
|
public DatabaseTestAttribute() : base("Database")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue