Skip to content

Inter‐Planetary Travel Testing Plan

Vu Khanh Vy Ho edited this page Aug 31, 2023 · 3 revisions

Introduction:

This class is responsible for moving and updating the state between planets, spawning the specified minigame for each round. So this class need to be ensured to update the correct planet, and spawn the correct minigames without any corruption.

Test Plan:

Objective:

  • The updated planet is correct
  • No collapse while updating the data

Methodlogy:

SetUp (BeforeEach):

  • Mock a minigame and input to skip it later
  • Create an instance planetTravel with the mock game and register for GameStateObserverService.

PlanetTravelTest:

Objective: Ensure the methods moveToNextPlanet and returnCurrent work correctly.

  • Add the planet Earth to simulate the start point.
  • Move to next Planet Mars and use the returnCurrent() method to return value. Check whether the state is updated and the returnCurrent method returns correctly.
  • using doNothing to skip the spawned minigames as it is not part of the team's test.
Clone this wiki locally