Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests that run patrolling until completion #159

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Remove private method

3b19b17
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

Add tests that run patrolling until completion #159

Remove private method
3b19b17
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Results completed Dec 13, 2024 in 0s

❌️ Test Results - 217/219, failed: 2 - Failed in 301.861s

✅ editmode-results.xml - 33/33 - Passed in 0.237s

❌️ playmode-results.xml - 184/186, failed: 2 - Failed in 301.624s

Details

✅ editmode-results.xml - 33/33 - Passed in 0.237s
  • ✅ EditTests.ComputeVisibilityTest.ComputeVisibilityOfPointFastBreakColumnTests - 12/12 - Passed in 0.046s
    • ComputeVisibilityOfPointFastBreakColumnTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.020s
    • ComputeVisibilityOfPointFastBreakColumnTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
    • ComputeVisibilityOfPointFastBreakColumnTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
    • ComputeVisibilityOfPointFastBreakColumnTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
    • ComputeVisibilityOfPointFastBreakColumnTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
    • ComputeVisibilityOfPointFastBreakColumnTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
    • ComputeVisibilityOfPointFastBreakColumnTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
    • ComputeVisibilityOfPointFastBreakColumnTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
    • ComputeVisibilityOfPointFastBreakColumnTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
    • ComputeVisibilityOfPointFastBreakColumnTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
    • ComputeVisibilityOfPointFastBreakColumnTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
    • ComputeVisibilityOfPointFastBreakColumnTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
  • ✅ EditTests.ComputeVisibilityTest.ComputeVisibilityOfPointTests - 12/12 - Passed in 0.028s
    • ComputeVisibilityOfPointTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.003s
    • ComputeVisibilityOfPointTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
    • ComputeVisibilityOfPointTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
    • ComputeVisibilityOfPointTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
    • ComputeVisibilityOfPointTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
    • ComputeVisibilityOfPointTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
    • ComputeVisibilityOfPointTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
    • ComputeVisibilityOfPointTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
    • ComputeVisibilityOfPointTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
    • ComputeVisibilityOfPointTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
    • ComputeVisibilityOfPointTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
    • ComputeVisibilityOfPointTests(EditTests.ComputeVisibilityTest+TestCase) - Passed in 0.002s
  • ✅ EditTests.CoverageCalculatorTest.AdjacentTilesAreCoveredTest - 6/6 - Passed in 0.052s
    • AdjacentTilesAreCoveredTest(20.0f,20.0f) - Passed in 0.015s
    • AdjacentTilesAreCoveredTest(20.5f,20.5f) - Passed in 0.006s
    • AdjacentTilesAreCoveredTest(20.25f,20.25f) - Passed in 0.009s
    • AdjacentTilesAreCoveredTest(20.75f,20.75f) - Passed in 0.006s
    • AdjacentTilesAreCoveredTest(20.49f,20.49f) - Passed in 0.009s
    • AdjacentTilesAreCoveredTest(20.99f,20.99f) - Passed in 0.006s
  • ✅ EditTests.CoverageCalculatorTest - 3/3 - Passed in 0.044s
    • CoverageTimeUpdateTest - Passed in 0.007s
    • RobotOnTopOfTileCoverageTest - Passed in 0.012s
    • TilesAreMarkedCoverableCorrectly - Passed in 0.025s
❌️ playmode-results.xml - 184/186, failed: 2 - Failed in 301.624s
  • ✅ PlayModeTests.CommunicationTest.Broadcast_CorrectDistanceCalculation - 5/5 - Passed in 2.186s
    • Broadcast_CorrectDistanceCalculation(20,20) - Passed in 0.898s
    • Broadcast_CorrectDistanceCalculation(5,5) - Passed in 0.329s
    • Broadcast_CorrectDistanceCalculation(5,-5) - Passed in 0.328s
    • Broadcast_CorrectDistanceCalculation(-5,5) - Passed in 0.312s
    • Broadcast_CorrectDistanceCalculation(-5,-5) - Passed in 0.320s
  • ✅ PlayModeTests.CommunicationTest.Broadcast_WallDistanceIsApproximatelyCorrect - 4/4 - Passed in 1.351s
    • Broadcast_WallDistanceIsApproximatelyCorrect(1) - Passed in 0.360s
    • Broadcast_WallDistanceIsApproximatelyCorrect(2) - Passed in 0.314s
    • Broadcast_WallDistanceIsApproximatelyCorrect(5) - Passed in 0.330s
    • Broadcast_WallDistanceIsApproximatelyCorrect(10) - Passed in 0.346s
  • ✅ PlayModeTests.CommunicationTest - 3/3 - Passed in 0.946s
    • Broadcast_NoWallsCommunicationTest - Passed in 0.321s
    • Broadcast_TransmissionFailedTest - Passed in 0.327s
    • Broadcast_TransmissionSuccessTest - Passed in 0.298s
  • ✅ PlayModeTests.EstimateTickTest.EstimateTestStraightPath(0.5f,-9) - 1/1 - Passed in 1.076s
    • EstimateTicksToTile_StraightPath - Passed in 1.076s
  • ✅ PlayModeTests.EstimateTickTest.EstimateTestStraightPath(1.0f,-5) - 1/1 - Passed in 0.801s
    • EstimateTicksToTile_StraightPath - Passed in 0.801s
  • ✅ PlayModeTests.EstimateTickTest.EstimateTestStraightPath(1.5f,-8) - 1/1 - Passed in 0.736s
    • EstimateTicksToTile_StraightPath - Passed in 0.736s
  • ✅ PlayModeTests.EstimateTickTest.EstimateTestTurnsPath(0.5f,10,10,-39) - 1/1 - Passed in 3.574s
    • EstimateTicksToTile_TurnsPath - Passed in 3.574s
  • ✅ PlayModeTests.EstimateTickTest.EstimateTestTurnsPath(0.5f,15,15,-31) - 1/1 - Passed in 2.510s
    • EstimateTicksToTile_TurnsPath - Passed in 2.510s
  • ✅ PlayModeTests.EstimateTickTest.EstimateTestTurnsPath(0.5f,20,20,-31) - 1/1 - Passed in 2.087s
    • EstimateTicksToTile_TurnsPath - Passed in 2.087s
  • ✅ PlayModeTests.EstimateTickTest.EstimateTestTurnsPath(0.5f,5,5,-42) - 1/1 - Passed in 3.644s
    • EstimateTicksToTile_TurnsPath - Passed in 3.644s
  • ✅ PlayModeTests.EstimateTickTest.EstimateTestTurnsPath(1.0f,10,10,-27) - 1/1 - Passed in 2.880s
    • EstimateTicksToTile_TurnsPath - Passed in 2.880s
  • ✅ PlayModeTests.EstimateTickTest.EstimateTestTurnsPath(1.0f,15,15,-23) - 1/1 - Passed in 1.916s
    • EstimateTicksToTile_TurnsPath - Passed in 1.916s
  • ✅ PlayModeTests.EstimateTickTest.EstimateTestTurnsPath(1.0f,20,20,-29) - 1/1 - Passed in 1.673s
    • EstimateTicksToTile_TurnsPath - Passed in 1.673s
  • ✅ PlayModeTests.EstimateTickTest.EstimateTestTurnsPath(1.0f,5,5,-17) - 1/1 - Passed in 2.664s
    • EstimateTicksToTile_TurnsPath - Passed in 2.664s
  • ✅ PlayModeTests.EstimateTickTest.EstimateTestTurnsPath(1.5f,10,10,-43) - 1/1 - Passed in 2.237s
    • EstimateTicksToTile_TurnsPath - Passed in 2.237s
  • ✅ PlayModeTests.EstimateTickTest.EstimateTestTurnsPath(1.5f,15,15,-39) - 1/1 - Passed in 1.744s
    • EstimateTicksToTile_TurnsPath - Passed in 1.744s
  • ✅ PlayModeTests.EstimateTickTest.EstimateTestTurnsPath(1.5f,5,5,-36) - 1/1 - Passed in 2.276s
    • EstimateTicksToTile_TurnsPath - Passed in 2.276s
  • ✅ PlayModeTests.ExplorationCsvDataWriterTest - 1/1 - Passed in 0.262s
    • ExplorationSnapshotToCsvTest - Passed in 0.262s
  • ✅ PlayModeTests.FaultInjections.DestroyRobots.CheckMultipleScenarioCanBeRunWithoutFailFaultInjectionTest(1,0,3) - 1/1 - Passed in 0.586s
    • DestroyRobotRandom_CheckRobotsDestroyFromStartToNumberOfRobotsToDestroy - Passed in 0.586s
  • ✅ PlayModeTests.FaultInjections.DestroyRobots.CheckMultipleScenarioCanBeRunWithoutFailFaultInjectionTest(1,1,5) - 1/1 - Passed in 0.974s
    • DestroyRobotRandom_CheckRobotsDestroyFromStartToNumberOfRobotsToDestroy - Passed in 0.974s
  • ✅ PlayModeTests.FaultInjections.DestroyRobots.CheckMultipleScenarioCanBeRunWithoutFailFaultInjectionTest(2,1,2) - 1/1 - Passed in 0.498s
    • DestroyRobotRandom_CheckRobotsDestroyFromStartToNumberOfRobotsToDestroy - Passed in 0.498s
  • ✅ PlayModeTests.FaultInjections.DestroyRobots.CheckMultipleScenarioCanBeRunWithoutFailFaultInjectionTest(2,2,7) - 1/1 - Passed in 1.572s
    • DestroyRobotRandom_CheckRobotsDestroyFromStartToNumberOfRobotsToDestroy - Passed in 1.572s
  • ✅ PlayModeTests.FaultInjections.DestroyRobots.CheckMultipleScenarioCanBeRunWithoutFailFaultInjectionTest(5,3,1) - 1/1 - Passed in 0.444s
    • DestroyRobotRandom_CheckRobotsDestroyFromStartToNumberOfRobotsToDestroy - Passed in 0.444s
  • ✅ PlayModeTests.FaultInjections.DestroyRobots.Random.DestroyRobotsRandomEveryTickFaultInjectionTest(1,0) - 1/1 - Passed in 0.301s
    • DestroyRobotRandom_CheckRobotsDestroyFromStartToNumberOfRobotsToDestroy - Passed in 0.301s
  • ✅ PlayModeTests.FaultInjections.DestroyRobots.Random.DestroyRobotsRandomEveryTickFaultInjectionTest(1,1) - 1/1 - Passed in 0.203s
    • DestroyRobotRandom_CheckRobotsDestroyFromStartToNumberOfRobotsToDestroy - Passed in 0.203s
  • ✅ PlayModeTests.FaultInjections.DestroyRobots.Random.DestroyRobotsRandomEveryTickFaultInjectionTest(10,7) - 1/1 - Passed in 1.090s
    • DestroyRobotRandom_CheckRobotsDestroyFromStartToNumberOfRobotsToDestroy - Passed in 1.090s
  • ✅ PlayModeTests.FaultInjections.DestroyRobots.Random.DestroyRobotsRandomEveryTickFaultInjectionTest(2,2) - 1/1 - Passed in 0.200s
    • DestroyRobotRandom_CheckRobotsDestroyFromStartToNumberOfRobotsToDestroy - Passed in 0.200s
  • ✅ PlayModeTests.FaultInjections.DestroyRobots.Random.DestroyRobotsRandomEveryTickFaultInjectionTest(5,3) - 1/1 - Passed in 0.464s
    • DestroyRobotRandom_CheckRobotsDestroyFromStartToNumberOfRobotsToDestroy - Passed in 0.464s
  • ✅ PlayModeTests.FaultInjections.DestroyRobots.Random.DestroyRobotsRandomZeroProbabilityFaultInjectionTest(1) - 1/1 - Passed in 1.191s
    • DestroyRobotRandom_ZeroDestroyedEnd - Passed in 1.191s
  • ✅ PlayModeTests.FaultInjections.DestroyRobots.Random.DestroyRobotsRandomZeroProbabilityFaultInjectionTest(10) - 1/1 - Passed in 9.450s
    • DestroyRobotRandom_ZeroDestroyedEnd - Passed in 9.450s
  • ✅ PlayModeTests.FaultInjections.DestroyRobots.Random.DestroyRobotsRandomZeroProbabilityFaultInjectionTest(2) - 1/1 - Passed in 2.230s
    • DestroyRobotRandom_ZeroDestroyedEnd - Passed in 2.230s
  • ✅ PlayModeTests.FaultInjections.DestroyRobots.Random.DestroyRobotsRandomZeroProbabilityFaultInjectionTest(5) - 1/1 - Passed in 4.635s
    • DestroyRobotRandom_ZeroDestroyedEnd - Passed in 4.635s
  • ✅ PlayModeTests.FaultInjections.DestroyRobots.SpecificTick.DestroyRobotsAtTicksFaultInjectionTest.DestroyRobotAtSpecificTicks - 6/6 - Passed in 7.353s
    • DestroyRobotAtSpecificTicks(PlayModeTests.FaultInjections.DestroyRobots.SpecificTick.DestroyRobotsAtTicksFaultInjectionTest+TestCase) - Passed in 2.258s
    • DestroyRobotAtSpecificTicks(PlayModeTests.FaultInjections.DestroyRobots.SpecificTick.DestroyRobotsAtTicksFaultInjectionTest+TestCase) - Passed in 0.264s
    • DestroyRobotAtSpecificTicks(PlayModeTests.FaultInjections.DestroyRobots.SpecificTick.DestroyRobotsAtTicksFaultInjectionTest+TestCase) - Passed in 0.291s
    • DestroyRobotAtSpecificTicks(PlayModeTests.FaultInjections.DestroyRobots.SpecificTick.DestroyRobotsAtTicksFaultInjectionTest+TestCase) - Passed in 0.418s
    • DestroyRobotAtSpecificTicks(PlayModeTests.FaultInjections.DestroyRobots.SpecificTick.DestroyRobotsAtTicksFaultInjectionTest+TestCase) - Passed in 2.293s
    • DestroyRobotAtSpecificTicks(PlayModeTests.FaultInjections.DestroyRobots.SpecificTick.DestroyRobotsAtTicksFaultInjectionTest+TestCase) - Passed in 1.829s
  • ✅ PlayModeTests.MaterialCommunicationTest.Broadcast_CorrectDistanceCalculation - 5/5 - Passed in 1.678s
    • Broadcast_CorrectDistanceCalculation(20,20) - Passed in 0.318s
    • Broadcast_CorrectDistanceCalculation(5,5) - Passed in 0.302s
    • Broadcast_CorrectDistanceCalculation(5,-5) - Passed in 0.307s
    • Broadcast_CorrectDistanceCalculation(-5,5) - Passed in 0.340s
    • Broadcast_CorrectDistanceCalculation(-5,-5) - Passed in 0.411s
  • ✅ PlayModeTests.MaterialCommunicationTest.Broadcast_WallDistanceIsApproximatelyCorrect - 4/4 - Passed in 1.404s
    • Broadcast_WallDistanceIsApproximatelyCorrect(1) - Passed in 0.342s
    • Broadcast_WallDistanceIsApproximatelyCorrect(2) - Passed in 0.355s
    • Broadcast_WallDistanceIsApproximatelyCorrect(5) - Passed in 0.359s
    • Broadcast_WallDistanceIsApproximatelyCorrect(10) - Passed in 0.348s
  • ✅ PlayModeTests.MaterialCommunicationTest - 4/4 - Passed in 1.288s
    • AttenuationCalculation - Passed in 0.367s
    • Broadcast_NoWallsCommunicationTest - Passed in 0.291s
    • Broadcast_TransmissionFailedTest - Passed in 0.326s
    • Broadcast_TransmissionSuccessTest - Passed in 0.304s
  • ✅ PlayModeTests.MinotaurDoorwayTest - 4/4 - Passed in 46.217s
    • BlankMap - Passed in 10.443s
    • Corner - Passed in 14.457s
    • Hallway - Passed in 2.357s
    • SingleDoorway - Passed in 18.960s
  • ❌️ PlayModeTests.PatrollingSimulatorBuildingMapTestTest - 0/1, failed: 1 - Failed in 3.799s
    • ❌️ TestConscientiousReactiveBuildingMap - Failed in 3.799s
      System.InvalidOperationException : No path from vertex to neighbor
      at Maes.Map.PatrollingMap.CreatePaths (Maes.Map.Vertex[] vertices, Maes.Map.SimulationMap`1[TCell] simulationMap) [0x00092] in Assets/Scripts/Map/PatrollingMap.cs:64
      at Maes.Map.PatrollingMap..ctor (Maes.Map.Vertex[] vertices, Maes.Map.SimulationMap`1[TCell] simulationMap) [0x0000f] in Assets/Scripts/Map/PatrollingMap.cs:22
      at Maes.Map.MapPatrollingGen.WatchmanRouteSolver.MakePatrollingMap (Maes.Map.SimulationMap`1[TCell] simulationMap, System.Boolean colorIslands) [0x00020] in Assets/Scripts/Map/MapPatrollingGen/WatchmanRouteSolver.cs:21
      at Maes.Simulation.SimulationScenarios.PatrollingSimulationScenario+<>c__DisplayClass9_0.<.ctor>b__1 (Maes.Map.SimulationMap`1[TCell] map) [0x00000] in Assets/Scripts/Simulation/SimulationScenarios/PatrollingSimulationScenario.cs:43
      at Maes.Simulation.PatrollingSimulation.AfterCollisionMapGenerated (Maes.Simulation.SimulationScenarios.PatrollingSimulationScenario scenario) [0x00001] in Assets/Scripts/Simulation/PatrollingSimulation.cs:35
      at Maes.Simulation.SimulationBase`8[TSimulation,TVisualizer,TVisualizerTile,TTracker,TSimulationInfoUIController,TAlgorithm,TScenario,TRobotSpawner].SetScenario (TScenario scenario) [0x00031] in Assets/Scripts/Simulation/SimulationBase.cs:117
      at Maes.Simulation.SimulationManager`3[TSimulation,TAlgorithm,TScenario].CreateSimulation (TScenario scenario) [0x00032] in Assets/Scripts/Simulation/SimulationManager.cs:270
      at Maes.Simulation.SimulationManager`3[TSimulation,TAlgorithm,TScenario].EnqueueScenario (TScenario simulationScenario) [0x0001d] in Assets/Scripts/Simulation/SimulationManager.cs:300
      at Maes.Simulation.Simulator`3[TSimulation,TAlgorithm,TScenario].EnqueueScenario (TScenario scenario) [0x00001] in Assets/Scripts/Simulation/Simulator.cs:63
      at PlayModeTests.PatrollingSimulatorBuildingMapTestTest.InitializeTestingSimulator () [0x00095] in Assets/PlayModeTests/PatrollingSimulatorBuildingMapTestTest.cs:40
      at PlayModeTests.PatrollingSimulatorBuildingMapTestTest+<TestConscientiousReactiveBuildingMap>d__4.MoveNext () [0x00020] in Assets/PlayModeTests/PatrollingSimulatorBuildingMapTestTest.cs:68
      at UnityEngine.TestTools.TestEnumerator+<Execute>d__7.MoveNext () [0x0004e] in ./Library/PackageCache/[email protected]/UnityEngine.TestRunner/NUnitExtensions/Attributes/TestEnumerator.cs:46
  • ❌️ PlayModeTests.PatrollingSimulatorCaveMapTestTest - 0/1, failed: 1 - Failed in 1.146s
    • ❌️ TestConscientiousReactiveCaveMap - Failed in 1.146s
      System.InvalidOperationException : No path from vertex to neighbor
      at Maes.Map.PatrollingMap.CreatePaths (Maes.Map.Vertex[] vertices, Maes.Map.SimulationMap`1[TCell] simulationMap) [0x00092] in Assets/Scripts/Map/PatrollingMap.cs:64
      at Maes.Map.PatrollingMap..ctor (Maes.Map.Vertex[] vertices, Maes.Map.SimulationMap`1[TCell] simulationMap) [0x0000f] in Assets/Scripts/Map/PatrollingMap.cs:22
      at Maes.Map.MapPatrollingGen.WatchmanRouteSolver.MakePatrollingMap (Maes.Map.SimulationMap`1[TCell] simulationMap, System.Boolean colorIslands) [0x00020] in Assets/Scripts/Map/MapPatrollingGen/WatchmanRouteSolver.cs:21
      at Maes.Simulation.SimulationScenarios.PatrollingSimulationScenario+<>c__DisplayClass9_0.<.ctor>b__1 (Maes.Map.SimulationMap`1[TCell] map) [0x00000] in Assets/Scripts/Simulation/SimulationScenarios/PatrollingSimulationScenario.cs:43
      at Maes.Simulation.PatrollingSimulation.AfterCollisionMapGenerated (Maes.Simulation.SimulationScenarios.PatrollingSimulationScenario scenario) [0x00001] in Assets/Scripts/Simulation/PatrollingSimulation.cs:35
      at Maes.Simulation.SimulationBase`8[TSimulation,TVisualizer,TVisualizerTile,TTracker,TSimulationInfoUIController,TAlgorithm,TScenario,TRobotSpawner].SetScenario (TScenario scenario) [0x00031] in Assets/Scripts/Simulation/SimulationBase.cs:117
      at Maes.Simulation.SimulationManager`3[TSimulation,TAlgorithm,TScenario].CreateSimulation (TScenario scenario) [0x00032] in Assets/Scripts/Simulation/SimulationManager.cs:270
      at Maes.Simulation.SimulationManager`3[TSimulation,TAlgorithm,TScenario].EnqueueScenario (TScenario simulationScenario) [0x0001d] in Assets/Scripts/Simulation/SimulationManager.cs:300
      at Maes.Simulation.Simulator`3[TSimulation,TAlgorithm,TScenario].EnqueueScenario (TScenario scenario) [0x00001] in Assets/Scripts/Simulation/Simulator.cs:63
      at PlayModeTests.PatrollingSimulatorCaveMapTestTest.InitializeTestingSimulator () [0x00091] in Assets/PlayModeTests/PatrollingSimulatorCaveMapTestTest.cs:40
      at PlayModeTests.PatrollingSimulatorCaveMapTestTest+<TestConscientiousReactiveCaveMap>d__4.MoveNext () [0x00020] in Assets/PlayModeTests/PatrollingSimulatorCaveMapTestTest.cs:68
      at UnityEngine.TestTools.TestEnumerator+<Execute>d__7.MoveNext () [0x0004e] in ./Library/PackageCache/[email protected]/UnityEngine.TestRunner/NUnitExtensions/Attributes/TestEnumerator.cs:46
  • ✅ PlayModeTests.Robot2DControllerTest.CheckTotalTraveledDistanceIsCorrect - 15/15 - Passed in 9.840s
    • CheckTotalTraveledDistanceIsCorrect(1.0f) - Passed in 0.407s
    • CheckTotalTraveledDistanceIsCorrect(2.0f) - Passed in 0.452s
    • CheckTotalTraveledDistanceIsCorrect(5.0f) - Passed in 0.660s
    • CheckTotalTraveledDistanceIsCorrect(10.0f) - Passed in 1.019s
    • CheckTotalTraveledDistanceIsCorrect(20.0f) - Passed in 1.641s
    • CheckTotalTraveledDistanceIsCorrect(1.0f) - Passed in 0.416s
    • CheckTotalTraveledDistanceIsCorrect(2.0f) - Passed in 0.421s
    • CheckTotalTraveledDistanceIsCorrect(5.0f) - Passed in 0.514s
    • CheckTotalTraveledDistanceIsCorrect(10.0f) - Passed in 0.679s
    • CheckTotalTraveledDistanceIsCorrect(20.0f) - Passed in 0.985s
    • CheckTotalTraveledDistanceIsCorrect(1.0f) - Passed in 0.416s
    • CheckTotalTraveledDistanceIsCorrect(2.0f) - Passed in 0.420s
    • CheckTotalTraveledDistanceIsCorrect(5.0f) - Passed in 0.475s
    • CheckTotalTraveledDistanceIsCorrect(10.0f) - Passed in 0.539s
    • CheckTotalTraveledDistanceIsCorrect(20.0f) - Passed in 0.796s
  • ✅ PlayModeTests.Robot2DControllerTest.CheckWithRotationTotalTraveledDistanceIsCorrect - 12/12 - Passed in 9.851s
    • CheckWithRotationTotalTraveledDistanceIsCorrect(1.0f) - Passed in 0.639s
    • CheckWithRotationTotalTraveledDistanceIsCorrect(2.0f) - Passed in 0.720s
    • CheckWithRotationTotalTraveledDistanceIsCorrect(5.0f) - Passed in 0.956s
    • CheckWithRotationTotalTraveledDistanceIsCorrect(10.0f) - Passed in 1.662s
    • CheckWithRotationTotalTraveledDistanceIsCorrect(1.0f) - Passed in 0.658s
    • CheckWithRotationTotalTraveledDistanceIsCorrect(2.0f) - Passed in 0.655s
    • CheckWithRotationTotalTraveledDistanceIsCorrect(5.0f) - Passed in 0.760s
    • CheckWithRotationTotalTraveledDistanceIsCorrect(10.0f) - Passed in 0.999s
    • CheckWithRotationTotalTraveledDistanceIsCorrect(1.0f) - Passed in 0.625s
    • CheckWithRotationTotalTraveledDistanceIsCorrect(2.0f) - Passed in 0.636s
    • CheckWithRotationTotalTraveledDistanceIsCorrect(5.0f) - Passed in 0.719s
    • CheckWithRotationTotalTraveledDistanceIsCorrect(10.0f) - Passed in 0.822s
  • ✅ PlayModeTests.Robot2DControllerTest.EstimateDistanceToTarget_IsDistanceCorrectTest - 12/12 - Passed in 2.302s
    • EstimateDistanceToTarget_IsDistanceCorrectTest(2.0f) - Passed in 0.171s
    • EstimateDistanceToTarget_IsDistanceCorrectTest(2.1f) - Passed in 0.188s
    • EstimateDistanceToTarget_IsDistanceCorrectTest(2.5f) - Passed in 0.207s
    • EstimateDistanceToTarget_IsDistanceCorrectTest(3.0f) - Passed in 0.197s
    • EstimateDistanceToTarget_IsDistanceCorrectTest(2.0f) - Passed in 0.177s
    • EstimateDistanceToTarget_IsDistanceCorrectTest(2.1f) - Passed in 0.200s
    • EstimateDistanceToTarget_IsDistanceCorrectTest(2.5f) - Passed in 0.197s
    • EstimateDistanceToTarget_IsDistanceCorrectTest(3.0f) - Passed in 0.198s
    • EstimateDistanceToTarget_IsDistanceCorrectTest(2.0f) - Passed in 0.183s
    • EstimateDistanceToTarget_IsDistanceCorrectTest(2.1f) - Passed in 0.200s
    • EstimateDistanceToTarget_IsDistanceCorrectTest(2.5f) - Passed in 0.179s
    • EstimateDistanceToTarget_IsDistanceCorrectTest(3.0f) - Passed in 0.204s
  • ✅ PlayModeTests.Robot2DControllerTest.EstimateTimeToTarget_IsTimeCorrectTest - 39/39 - Passed in 136.481s
    • EstimateTimeToTarget_IsTimeCorrectTest(0.1f) - Passed in 0.293s
    • EstimateTimeToTarget_IsTimeCorrectTest(1.0f) - Passed in 0.690s
    • EstimateTimeToTarget_IsTimeCorrectTest(2.0f) - Passed in 1.499s
    • EstimateTimeToTarget_IsTimeCorrectTest(2.1f) - Passed in 1.480s
    • EstimateTimeToTarget_IsTimeCorrectTest(2.5f) - Passed in 1.500s
    • EstimateTimeToTarget_IsTimeCorrectTest(2.6f) - Passed in 2.304s
    • EstimateTimeToTarget_IsTimeCorrectTest(3.0f) - Passed in 2.300s
    • EstimateTimeToTarget_IsTimeCorrectTest(4.0f) - Passed in 3.075s
    • EstimateTimeToTarget_IsTimeCorrectTest(5.0f) - Passed in 3.980s
    • EstimateTimeToTarget_IsTimeCorrectTest(7.5f) - Passed in 6.480s
    • EstimateTimeToTarget_IsTimeCorrectTest(10.0f) - Passed in 8.180s
    • EstimateTimeToTarget_IsTimeCorrectTest(15.0f) - Passed in 12.379s
    • EstimateTimeToTarget_IsTimeCorrectTest(20.0f) - Passed in 16.578s
    • EstimateTimeToTarget_IsTimeCorrectTest(0.1f) - Passed in 0.305s
    • EstimateTimeToTarget_IsTimeCorrectTest(1.0f) - Passed in 0.611s
    • EstimateTimeToTarget_IsTimeCorrectTest(2.0f) - Passed in 1.100s
    • EstimateTimeToTarget_IsTimeCorrectTest(2.1f) - Passed in 1.080s
    • EstimateTimeToTarget_IsTimeCorrectTest(2.5f) - Passed in 1.100s
    • EstimateTimeToTarget_IsTimeCorrectTest(2.6f) - Passed in 1.700s
    • EstimateTimeToTarget_IsTimeCorrectTest(3.0f) - Passed in 1.700s
    • EstimateTimeToTarget_IsTimeCorrectTest(4.0f) - Passed in 2.312s
    • EstimateTimeToTarget_IsTimeCorrectTest(5.0f) - Passed in 2.807s
    • EstimateTimeToTarget_IsTimeCorrectTest(7.5f) - Passed in 4.500s
    • EstimateTimeToTarget_IsTimeCorrectTest(10.0f) - Passed in 5.779s
    • EstimateTimeToTarget_IsTimeCorrectTest(15.0f) - Passed in 8.310s
    • EstimateTimeToTarget_IsTimeCorrectTest(20.0f) - Passed in 11.088s
    • EstimateTimeToTarget_IsTimeCorrectTest(0.1f) - Passed in 0.299s
    • EstimateTimeToTarget_IsTimeCorrectTest(1.0f) - Passed in 0.519s
    • EstimateTimeToTarget_IsTimeCorrectTest(2.0f) - Passed in 0.900s
    • EstimateTimeToTarget_IsTimeCorrectTest(2.1f) - Passed in 0.900s
    • EstimateTimeToTarget_IsTimeCorrectTest(2.5f) - Passed in 0.900s
    • EstimateTimeToTarget_IsTimeCorrectTest(2.6f) - Passed in 1.304s
    • EstimateTimeToTarget_IsTimeCorrectTest(3.0f) - Passed in 1.280s
    • EstimateTimeToTarget_IsTimeCorrectTest(4.0f) - Passed in 1.695s
    • EstimateTimeToTarget_IsTimeCorrectTest(5.0f) - Passed in 2.099s
    • EstimateTimeToTarget_IsTimeCorrectTest(7.5f) - Passed in 3.481s
    • EstimateTimeToTarget_IsTimeCorrectTest(10.0f) - Passed in 4.378s
    • EstimateTimeToTarget_IsTimeCorrectTest(15.0f) - Passed in 6.579s
    • EstimateTimeToTarget_IsTimeCorrectTest(20.0f) - Passed in 9.019s
  • ✅ PlayModeTests.Robot2DControllerTest.MoveTo_IsDistanceCorrectTest - 15/15 - Passed in 9.946s
    • MoveTo_IsDistanceCorrectTest(1.0f) - Passed in 0.489s
    • MoveTo_IsDistanceCorrectTest(2.0f) - Passed in 0.454s
    • MoveTo_IsDistanceCorrectTest(5.0f) - Passed in 0.660s
    • MoveTo_IsDistanceCorrectTest(10.0f) - Passed in 0.979s
    • MoveTo_IsDistanceCorrectTest(20.0f) - Passed in 1.701s
    • MoveTo_IsDistanceCorrectTest(1.0f) - Passed in 0.428s
    • MoveTo_IsDistanceCorrectTest(2.0f) - Passed in 0.420s
    • MoveTo_IsDistanceCorrectTest(5.0f) - Passed in 0.495s
    • MoveTo_IsDistanceCorrectTest(10.0f) - Passed in 0.699s
    • MoveTo_IsDistanceCorrectTest(20.0f) - Passed in 0.997s
    • MoveTo_IsDistanceCorrectTest(1.0f) - Passed in 0.408s
    • MoveTo_IsDistanceCorrectTest(2.0f) - Passed in 0.440s
    • MoveTo_IsDistanceCorrectTest(5.0f) - Passed in 0.436s
    • MoveTo_IsDistanceCorrectTest(10.0f) - Passed in 0.539s
    • MoveTo_IsDistanceCorrectTest(20.0f) - Passed in 0.801s
  • ✅ PlayModeTests.Robot2DControllerTest.Rotate_RotatesCorrectAmountOfDegrees - 27/27 - Passed in 11.541s
    • Rotate_RotatesCorrectAmountOfDegrees(1.0f) - Passed in 0.420s
    • Rotate_RotatesCorrectAmountOfDegrees(-1.0f) - Passed in 0.420s
    • Rotate_RotatesCorrectAmountOfDegrees(2.0f) - Passed in 0.440s
    • Rotate_RotatesCorrectAmountOfDegrees(5.0f) - Passed in 0.420s
    • Rotate_RotatesCorrectAmountOfDegrees(10.0f) - Passed in 0.440s
    • Rotate_RotatesCorrectAmountOfDegrees(20.0f) - Passed in 0.419s
    • Rotate_RotatesCorrectAmountOfDegrees(-20.0f) - Passed in 0.420s
    • Rotate_RotatesCorrectAmountOfDegrees(180.0f) - Passed in 0.440s
    • Rotate_RotatesCorrectAmountOfDegrees(-180.0f) - Passed in 0.440s
    • Rotate_RotatesCorrectAmountOfDegrees(1.0f) - Passed in 0.405s
    • Rotate_RotatesCorrectAmountOfDegrees(-1.0f) - Passed in 0.420s
    • Rotate_RotatesCorrectAmountOfDegrees(2.0f) - Passed in 0.419s
    • Rotate_RotatesCorrectAmountOfDegrees(5.0f) - Passed in 0.440s
    • Rotate_RotatesCorrectAmountOfDegrees(10.0f) - Passed in 0.440s
    • Rotate_RotatesCorrectAmountOfDegrees(20.0f) - Passed in 0.419s
    • Rotate_RotatesCorrectAmountOfDegrees(-20.0f) - Passed in 0.420s
    • Rotate_RotatesCorrectAmountOfDegrees(180.0f) - Passed in 0.412s
    • Rotate_RotatesCorrectAmountOfDegrees(-180.0f) - Passed in 0.447s
    • Rotate_RotatesCorrectAmountOfDegrees(1.0f) - Passed in 0.400s
    • Rotate_RotatesCorrectAmountOfDegrees(-1.0f) - Passed in 0.440s
    • Rotate_RotatesCorrectAmountOfDegrees(2.0f) - Passed in 0.440s
    • Rotate_RotatesCorrectAmountOfDegrees(5.0f) - Passed in 0.440s
    • Rotate_RotatesCorrectAmountOfDegrees(10.0f) - Passed in 0.420s
    • Rotate_RotatesCorrectAmountOfDegrees(20.0f) - Passed in 0.440s
    • Rotate_RotatesCorrectAmountOfDegrees(-20.0f) - Passed in 0.420s
    • Rotate_RotatesCorrectAmountOfDegrees(180.0f) - Passed in 0.440s
    • Rotate_RotatesCorrectAmountOfDegrees(-180.0f) - Passed in 0.420s

Annotations

Check failure on line 64 in Assets/Scripts/Map/PatrollingMap.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results

PlayModeTests.PatrollingSimulatorBuildingMapTestTest.TestConscientiousReactiveBuildingMap

System.InvalidOperationException : No path from vertex to neighbor
Raw output
  at Maes.Map.PatrollingMap.CreatePaths (Maes.Map.Vertex[] vertices, Maes.Map.SimulationMap`1[TCell] simulationMap) [0x00092] in /github/workspace/Assets/Scripts/Map/PatrollingMap.cs:64 
  at Maes.Map.PatrollingMap..ctor (Maes.Map.Vertex[] vertices, Maes.Map.SimulationMap`1[TCell] simulationMap) [0x0000f] in /github/workspace/Assets/Scripts/Map/PatrollingMap.cs:22 
  at Maes.Map.MapPatrollingGen.WatchmanRouteSolver.MakePatrollingMap (Maes.Map.SimulationMap`1[TCell] simulationMap, System.Boolean colorIslands) [0x00020] in /github/workspace/Assets/Scripts/Map/MapPatrollingGen/WatchmanRouteSolver.cs:21 
  at Maes.Simulation.SimulationScenarios.PatrollingSimulationScenario+<>c__DisplayClass9_0.<.ctor>b__1 (Maes.Map.SimulationMap`1[TCell] map) [0x00000] in /github/workspace/Assets/Scripts/Simulation/SimulationScenarios/PatrollingSimulationScenario.cs:43 
  at Maes.Simulation.PatrollingSimulation.AfterCollisionMapGenerated (Maes.Simulation.SimulationScenarios.PatrollingSimulationScenario scenario) [0x00001] in /github/workspace/Assets/Scripts/Simulation/PatrollingSimulation.cs:35 
  at Maes.Simulation.SimulationBase`8[TSimulation,TVisualizer,TVisualizerTile,TTracker,TSimulationInfoUIController,TAlgorithm,TScenario,TRobotSpawner].SetScenario (TScenario scenario) [0x00031] in /github/workspace/Assets/Scripts/Simulation/SimulationBase.cs:117 
  at Maes.Simulation.SimulationManager`3[TSimulation,TAlgorithm,TScenario].CreateSimulation (TScenario scenario) [0x00032] in /github/workspace/Assets/Scripts/Simulation/SimulationManager.cs:270 
  at Maes.Simulation.SimulationManager`3[TSimulation,TAlgorithm,TScenario].EnqueueScenario (TScenario simulationScenario) [0x0001d] in /github/workspace/Assets/Scripts/Simulation/SimulationManager.cs:300 
  at Maes.Simulation.Simulator`3[TSimulation,TAlgorithm,TScenario].EnqueueScenario (TScenario scenario) [0x00001] in /github/workspace/Assets/Scripts/Simulation/Simulator.cs:63 
  at PlayModeTests.PatrollingSimulatorBuildingMapTestTest.InitializeTestingSimulator () [0x00095] in /github/workspace/Assets/PlayModeTests/PatrollingSimulatorBuildingMapTestTest.cs:40 
  at PlayModeTests.PatrollingSimulatorBuildingMapTestTest+<TestConscientiousReactiveBuildingMap>d__4.MoveNext () [0x00020] in /github/workspace/Assets/PlayModeTests/PatrollingSimulatorBuildingMapTestTest.cs:68 
  at UnityEngine.TestTools.TestEnumerator+<Execute>d__7.MoveNext () [0x0004e] in ./Library/PackageCache/[email protected]/UnityEngine.TestRunner/NUnitExtensions/Attributes/TestEnumerator.cs:46 

Check failure on line 64 in Assets/Scripts/Map/PatrollingMap.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results

PlayModeTests.PatrollingSimulatorCaveMapTestTest.TestConscientiousReactiveCaveMap

System.InvalidOperationException : No path from vertex to neighbor
Raw output
  at Maes.Map.PatrollingMap.CreatePaths (Maes.Map.Vertex[] vertices, Maes.Map.SimulationMap`1[TCell] simulationMap) [0x00092] in /github/workspace/Assets/Scripts/Map/PatrollingMap.cs:64 
  at Maes.Map.PatrollingMap..ctor (Maes.Map.Vertex[] vertices, Maes.Map.SimulationMap`1[TCell] simulationMap) [0x0000f] in /github/workspace/Assets/Scripts/Map/PatrollingMap.cs:22 
  at Maes.Map.MapPatrollingGen.WatchmanRouteSolver.MakePatrollingMap (Maes.Map.SimulationMap`1[TCell] simulationMap, System.Boolean colorIslands) [0x00020] in /github/workspace/Assets/Scripts/Map/MapPatrollingGen/WatchmanRouteSolver.cs:21 
  at Maes.Simulation.SimulationScenarios.PatrollingSimulationScenario+<>c__DisplayClass9_0.<.ctor>b__1 (Maes.Map.SimulationMap`1[TCell] map) [0x00000] in /github/workspace/Assets/Scripts/Simulation/SimulationScenarios/PatrollingSimulationScenario.cs:43 
  at Maes.Simulation.PatrollingSimulation.AfterCollisionMapGenerated (Maes.Simulation.SimulationScenarios.PatrollingSimulationScenario scenario) [0x00001] in /github/workspace/Assets/Scripts/Simulation/PatrollingSimulation.cs:35 
  at Maes.Simulation.SimulationBase`8[TSimulation,TVisualizer,TVisualizerTile,TTracker,TSimulationInfoUIController,TAlgorithm,TScenario,TRobotSpawner].SetScenario (TScenario scenario) [0x00031] in /github/workspace/Assets/Scripts/Simulation/SimulationBase.cs:117 
  at Maes.Simulation.SimulationManager`3[TSimulation,TAlgorithm,TScenario].CreateSimulation (TScenario scenario) [0x00032] in /github/workspace/Assets/Scripts/Simulation/SimulationManager.cs:270 
  at Maes.Simulation.SimulationManager`3[TSimulation,TAlgorithm,TScenario].EnqueueScenario (TScenario simulationScenario) [0x0001d] in /github/workspace/Assets/Scripts/Simulation/SimulationManager.cs:300 
  at Maes.Simulation.Simulator`3[TSimulation,TAlgorithm,TScenario].EnqueueScenario (TScenario scenario) [0x00001] in /github/workspace/Assets/Scripts/Simulation/Simulator.cs:63 
  at PlayModeTests.PatrollingSimulatorCaveMapTestTest.InitializeTestingSimulator () [0x00091] in /github/workspace/Assets/PlayModeTests/PatrollingSimulatorCaveMapTestTest.cs:40 
  at PlayModeTests.PatrollingSimulatorCaveMapTestTest+<TestConscientiousReactiveCaveMap>d__4.MoveNext () [0x00020] in /github/workspace/Assets/PlayModeTests/PatrollingSimulatorCaveMapTestTest.cs:68 
  at UnityEngine.TestTools.TestEnumerator+<Execute>d__7.MoveNext () [0x0004e] in ./Library/PackageCache/[email protected]/UnityEngine.TestRunner/NUnitExtensions/Attributes/TestEnumerator.cs:46