* 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:
lbsa71
2009-04-09 20:06:27 +00:00
parent 1066aa6998
commit 6af0751cc5
8 changed files with 23 additions and 16 deletions

View File

@@ -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.

View File

@@ -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());

View File

@@ -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();