From 6af0751cc5d276370c7c4ce2a0ee064b1106a7bc Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Thu, 9 Apr 2009 20:06:27 +0000 Subject: * 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. --- OpenSim/Region/Framework/Scenes/Tests/EntityManagerTests.cs | 7 ++++--- OpenSim/Region/Framework/Scenes/Tests/SceneObjectBasicTests.cs | 3 ++- OpenSim/Region/Framework/Scenes/Tests/StandaloneTeleportTests.cs | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) (limited to 'OpenSim/Region/Framework') diff --git a/OpenSim/Region/Framework/Scenes/Tests/EntityManagerTests.cs b/OpenSim/Region/Framework/Scenes/Tests/EntityManagerTests.cs index 480abc6..d1ef686 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/EntityManagerTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/EntityManagerTests.cs @@ -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. diff --git a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectBasicTests.cs b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectBasicTests.cs index 59f1ba4..5c3d653 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectBasicTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectBasicTests.cs @@ -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 /// /// Test adding an object to a scene. /// - [Test] + [Test, LongRunning] public void TestAddSceneObject() { Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod()); diff --git a/OpenSim/Region/Framework/Scenes/Tests/StandaloneTeleportTests.cs b/OpenSim/Region/Framework/Scenes/Tests/StandaloneTeleportTests.cs index 46bfb30..80d2ba9 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/StandaloneTeleportTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/StandaloneTeleportTests.cs @@ -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. /// /// 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(); -- cgit v1.1