Skip to content

Instantly share code, notes, and snippets.

@SurajDatta
Last active December 25, 2017 11:38
Show Gist options
  • Save SurajDatta/9b47eabf3335a7c0cd185daed0665583 to your computer and use it in GitHub Desktop.
Save SurajDatta/9b47eabf3335a7c0cd185daed0665583 to your computer and use it in GitHub Desktop.
Rails Test Plan

Controls

  • Right click to place an item and left click to destroy an item. Press W to move forward, A to move left, D to move right, S to move backwards and Space Bar to jump. Use the number keys 0-9 to toggle through inventory.
  • Track joins are only detected on block updates in some cases. Eventhough this is fixed, you might need to trigger one by breaking a block adjacent to the track to update. This is shown in the GIFs below.

Setup

Setup Terasology

  1. First you will have to setup Terasology.
  2. Then you will have to setup the Rails module.
  3. Then you are ready to go to next step!

Setup Rails Module

Verify the game does not crash or hang at any of the following steps.

  1. Create a new world with only rails and its dependencies active from the modules.
  2. Verify the world is created and loads.
  3. Verify your inventory contains 1 Minecart, 1 Spanner and 99 Rails. (in some cases few of these items are not available, as it gives a default block. You will need run the following code: gradlew run or re-clone the repo).

Rails Test

Rail Position Tests

To get more rails, first press F1 key then type-in give Rails:Rails to get more track as needed.

Corner Joint

[[images/Corner.gif]]

  1. Place three rails in an elbow bend.
  2. Check the centre rail has changed to a bend.
  3. If not, change the center rail.

Tee Joint

[[images/T.gif]]

  1. Place four rails in a T-shape.
  2. Check that the centre rail has turned into a junction.
  3. If not, destroy the middle rail and place it back again.

Straight Track

[[images/Straight.gif]]

  1. Place three rails in a straight line.
  2. Check they all snap to face the same way.

Sloped Track

[[images/Slope.gif]]

  1. Place three tracks in a line, with the end one elevated on one block.
  2. Verify the middle track is sloped upwards towards the elevated block.

Double Slope

Double-Slope

  1. Create a ‘staircase’ of 2 or more blocks with an elevation of one block between blocks on the staircase.
  2. Place three or more rails in a line.
  3. Verify that the tracks connect and are sloped upwards towards the elevated block before it.

Inverted Tee

[[images/InvertT.gif]]

  1. Create a Tee joint as detailed Above.
  2. Press e on it with the spanner.
  3. Verify the direction has switched.
  4. Press e on it with the spanner again.
  5. Verify the direction has switched back.

Vehicle Tests

Minecart

  1. Place tracks in a small loop (eg 4x8 blocks).
  2. Place a minecart on the loop.
  3. Verify it appears and is on the tracks.
  4. Enter it by pressing e over it.
  5. Verify you enter the cart.
  6. Exit the cart using e over it again.
  7. Verify you have exited the cart.
  8. Move the cart by pushing it.
  9. Verify the cart moves around the loop.
  10. Stop pushing the cart.
  11. Verify the cart stops.
  12. Destroy the cart by left clicking it.
  13. Verify the cart is destroyed.

Minecart Halt

DS

  1. Place tracks in a straight line.
  2. Leave one block ahead(gap) of the straight line and place one track in front of the gap.
  3. Place a minecart on the straight line track.
  4. Push the cart till the end.
  5. Verify that the cart has moved out of the track and onto the ground.
@SurajDatta
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment