mirror of
https://github.com/opensim/opensim.git
synced 2026-06-29 02:25:39 +08:00
* Added custom DatabaseTestAttribute to help separating unit tests from component tests.
This commit is contained in:
@@ -33,7 +33,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.MySQL.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class MySQLAssetTest : BasicAssetTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -33,7 +33,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernateMsSqlAssetTest : BasicAssetTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -33,7 +33,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernateMsSqlEstateTest : BasicEstateTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -33,7 +33,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernateMsSqlGridTest : BasicGridTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -33,7 +33,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernateMsSqlInventoryTest : BasicInventoryTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -33,7 +33,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernateMsSqlRegionTest : BasicRegionTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -33,7 +33,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernateMsSqlUserTest : BasicUserTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -33,7 +33,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernateMySQLAssetTest : BasicAssetTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -33,7 +33,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernateMySQLGridTest : BasicGridTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -33,7 +33,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernateMySQLInventoryTest : BasicInventoryTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -33,7 +33,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernateMySQLRegionTest : BasicRegionTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -33,7 +33,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernateMySQLUserTest : BasicUserTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -33,7 +33,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernateMySQLEstateTest : BasicEstateTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -33,7 +33,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernatePostgreSQLAssetTest : BasicAssetTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -33,7 +33,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernatePostgreSQLEstateTest : BasicEstateTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -33,7 +33,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernatePostgreSQLGridTest : BasicGridTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -33,7 +33,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernatePostgreSQLInventoryTest : BasicInventoryTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -33,7 +33,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernatePostgreSQLRegionTest : BasicRegionTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -33,7 +33,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernatePostgreSQLUserTest : BasicUserTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -34,7 +34,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernateSQLiteAssetTest : BasicAssetTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -34,7 +34,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernateSQLiteEstateTest : BasicEstateTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -34,7 +34,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernateSQLiteGridTest : BasicGridTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -34,7 +34,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernateSQLiteInventoryTest : BasicInventoryTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -34,7 +34,7 @@ using System.Reflection;
|
||||
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernateSQLiteRegionTest : BasicRegionTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -35,7 +35,7 @@ using System.Reflection;
|
||||
namespace OpenSim.Data.NHibernate.Tests
|
||||
{
|
||||
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class NHibernateSQLiteUserTest : BasicUserTest
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
@@ -31,7 +31,7 @@ using OpenSim.Data.Tests;
|
||||
|
||||
namespace OpenSim.Data.SQLite.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class SQLiteAssetTest : BasicAssetTest
|
||||
{
|
||||
public string file;
|
||||
|
||||
@@ -31,7 +31,7 @@ using OpenSim.Data.Tests;
|
||||
|
||||
namespace OpenSim.Data.SQLite.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class SQLiteEstateTest : BasicEstateTest
|
||||
{
|
||||
public string file = "regiontest.db";
|
||||
|
||||
@@ -31,7 +31,7 @@ using OpenSim.Data.Tests;
|
||||
|
||||
namespace OpenSim.Data.SQLite.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class SQLiteInventoryTest : BasicInventoryTest
|
||||
{
|
||||
public string file;
|
||||
|
||||
@@ -31,7 +31,7 @@ using OpenSim.Data.Tests;
|
||||
|
||||
namespace OpenSim.Data.SQLite.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class SQLiteRegionTest : BasicRegionTest
|
||||
{
|
||||
public string file = "regiontest.db";
|
||||
|
||||
@@ -31,7 +31,7 @@ using OpenSim.Data.Tests;
|
||||
|
||||
namespace OpenSim.Data.SQLite.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, DatabaseTest]
|
||||
public class SQLiteUserTest : BasicUserTest
|
||||
{
|
||||
public string file;
|
||||
|
||||
17
OpenSim/Data/Tests/DatabaseTestAttribute.cs
Normal file
17
OpenSim/Data/Tests/DatabaseTestAttribute.cs
Normal 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")
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user