-
Notifications
You must be signed in to change notification settings - Fork 7
Toggle Map Test Plan
As the toggleable map class only spawns and removes UI elements and does not change the state of the game (excluding the pausing and unpausing), visual confirmation can be used for testing as well as examining debugger statements. This can be done by pressing the ‘M’ key to spawn/despawn the map and confirm functionality. Logging is also used to log certain events concerning the Toggleable Map which can also be examined more closely with the logs even including the entity type and it's location whenever an entity is added to the minimap. This can be used to ensure that entities (player, spaceship or questgiver) are placed in the correct position.
To test that the pause functionality works, toggling the map display and observing the entities around you have had their animations paused and have stopped moving will indicate that the time has been successfully stopped. To test the un-pause functionality press m again to close the Toggleable Map and then observe any surrounding entities and make sure that their animations resume and that they can move again (this indicates the time has been resumed). Logger statements can also be examined to ensure that the timescale is set to 0 or 1 for pause/un-pause respectively as well.