Skip to content
Scott M Sunarto edited this page Dec 31, 2016 · 1 revision

Setup Test (1 Tests)

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:

  1. Download/Update the Portals module. gradlew fetchModulePortals

  2. Create a new world with only Portals module and it's dependencies activated.

  3. Verify that the world has been successfully created and loaded. Check for errors in the console.

Portal Blocks (3 Tests)

There's 4 blocks in Portals that can be placed in the world.

  1. Portal
  2. PortalFrame
  3. GreenPortal
  4. 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

  1. Try walking through the GreenPortal, CyanPortal, and Portal. Verify that you can walk through those blocks.
  2. Try breaking GreenPortal, CyanPortal, and Portal. This block should be able to be broken with 10 continuous hits.

Spawning (4 + 3 Tests)

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

  1. Place the portal block.
  2. Wait for a few seconds.
  3. Verify whether or not the monsters start spawning.

Remove Spawner Test

  1. Break the portal block.
  2. Verify whether or not the monsters stop spawning.

Active & Deactivate Spawner

  1. Place the portal block.
  2. Wait until monsters start spawning.
  3. Press 'E' while facing the portal.
  4. Verify whether or not the monsters stop spawning.
  5. Press 'E' again while facing the portal.
  6. Verify whether or not the monsters start spawning again.

Checking The Probability of Monster Variety

Testable, but does not appear to be present.

  1. Place a portal block that has more than one monster variety.
  2. Verify whether or not the amount of both monsters is more less the same amount.

Checking The Configuration of Spawners (Max Mobs)

  1. Place the portal block.
  2. 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.

  1. Place the portal block.
  2. 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.

  1. Place the portal block.
  2. 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.

  1. Place the portal block.
  2. Verify whether or not the monsters spawn when there's no player in a range of 10.000 blocks.
Clone this wiki locally