mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
* Tagged long running tests with LongRunningAttribute.
* Now, the 144 unit tests takes roughly as long time to run (16s on my laptop) that the 10 long running takes. The database tests takes forever. * Feel free to run the unit tests as you code, and the rest before commit.
This commit is contained in:
@@ -37,11 +37,12 @@ using OpenMetaverse;
|
||||
using OpenSim.Framework;
|
||||
using OpenSim.Framework.Communications;
|
||||
using OpenSim.Region.Framework.Scenes;
|
||||
using OpenSim.Tests.Common;
|
||||
using OpenSim.Tests.Common.Setup;
|
||||
|
||||
namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestFixture, LongRunning]
|
||||
public class EntityManagerTests
|
||||
{
|
||||
static public Random random;
|
||||
@@ -51,7 +52,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
[Test]
|
||||
public void T010_AddObjects()
|
||||
{
|
||||
Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod());
|
||||
// Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod());
|
||||
|
||||
random = new Random();
|
||||
SceneObjectGroup found;
|
||||
@@ -86,7 +87,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
[Test]
|
||||
public void T011_ThreadAddRemoveTest()
|
||||
{
|
||||
Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod());
|
||||
// Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod());
|
||||
|
||||
// This test adds and removes with mutiple threads, attempting to break the
|
||||
// uuid and localid dictionary coherence.
|
||||
|
||||
@@ -35,6 +35,7 @@ using OpenSim.Framework.Communications;
|
||||
using OpenSim.Framework.Communications.Cache;
|
||||
using OpenSim.Region.Communications.Local;
|
||||
using OpenSim.Region.Framework.Scenes;
|
||||
using OpenSim.Tests.Common;
|
||||
using OpenSim.Tests.Common.Mock;
|
||||
using OpenSim.Tests.Common.Setup;
|
||||
|
||||
@@ -49,7 +50,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
/// <summary>
|
||||
/// Test adding an object to a scene.
|
||||
/// </summary>
|
||||
[Test]
|
||||
[Test, LongRunning]
|
||||
public void TestAddSceneObject()
|
||||
{
|
||||
Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod());
|
||||
|
||||
@@ -35,6 +35,7 @@ using OpenSim.Framework;
|
||||
using OpenSim.Framework.Communications;
|
||||
using OpenSim.Region.Framework.Interfaces;
|
||||
using OpenSim.Region.CoreModules.Communications.REST;
|
||||
using OpenSim.Tests.Common;
|
||||
using OpenSim.Tests.Common.Mock;
|
||||
using OpenSim.Tests.Common.Setup;
|
||||
|
||||
@@ -50,10 +51,10 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
/// Test a teleport between two regions that are not neighbours and do not share any neighbours in common.
|
||||
/// </summary>
|
||||
/// Does not yet do what is says on the tin.
|
||||
[Test]
|
||||
[Test, LongRunning]
|
||||
public void TestSimpleNotNeighboursTeleport()
|
||||
{
|
||||
Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod());
|
||||
// Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod());
|
||||
|
||||
log4net.Config.XmlConfigurator.Configure();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user