-
Notifications
You must be signed in to change notification settings - Fork 3
Portals Test Plan
Before we begin testing the functionality of the module, we need to make sure that the module is running without any conflicts and errors by following this steps:
-
Download/Update the Portals module.
gradlew fetchModulePortals
-
Create a new world with only Portals module and it's dependencies activated.
-
Verify that the world has been successfully created and loaded. Check for errors in the console.
There's 4 blocks in Portals that can be placed in the world.
- Portal
- PortalFrame
- GreenPortal
- CyanPortal
Checking whether or not the game recognizes all the block module
Try spawning all of this blocks to your inventory using this command at the in-game console (Press F1): give <block_name>
. You should be able to get all of the blocks in the module using this command.
Block Place Test
Place those blocks in the world and make sure that all of this blocks are place-able and are rendered properly by the game.
Block Property Test
- Try walking through the GreenPortal, CyanPortal, and Portal. Verify that you can walk through those blocks.
- Try breaking GreenPortal, CyanPortal, and Portal. This block should be able to be broken with 10 continuous hits.
Portal blocks act a spawner for monster that exists in the game. To test this functionality, you need to follow this steps:
Create Spawner Test
- Place the portal block.
- Wait for a few seconds.
- Verify whether or not the monsters start spawning.
Remove Spawner Test
- Break the portal block.
- Verify whether or not the monsters stop spawning.
Active & Deactivate Spawner
- Place the portal block.
- Wait until monsters start spawning.
- Press 'E' while facing the portal.
- Verify whether or not the monsters stop spawning.
- Press 'E' again while facing the portal.
- Verify whether or not the monsters start spawning again.
Checking The Probability of Monster Variety
Testable, but does not appear to be present.
- Place a portal block that has more than one monster variety.
- Verify whether or not the amount of both monsters is more less the same amount.
Checking The Configuration of Spawners (Max Mobs)
- Place the portal block.
- Verify whether or not the maximum number of monsters spawned per portal is 16.
Checking The Configuration of Spawners (Radius)
Testable, but does not appear to be present.
- Place the portal block.
- Verify whether or not the spawning radius of monster is 20 blocks.
Checking The Configuration of Spawners (Interval)
Testable, but does not appear to be present.
- Place the portal block.
- Verify whether or not the monsters spawn in an interval of 5000ms.
Checking The Configuration of Spawners (Player Range)
Testable, but does not appear to be present.
- Place the portal block.
- Verify whether or not the monsters spawn when there's no player in a range of 10.000 blocks.