-
Notifications
You must be signed in to change notification settings - Fork 17
Rails Test Plan
Scott M Sunarto edited this page Dec 17, 2016
·
9 revisions
NOTE: Track joins are only detected on block updates at the moment. Until this is fixed you will need to trigger one by breaking a block adjacent to the track to update. This is shown in the gifs
##Setup Test
Verify the game does not crash or hang at any of the following steps.
- Download or update the Rails Module
- Create a new world with only it an it's dependencies active
- Verify the world is created and loads.
- Verify your inventory contains 1 Locomotive, 1 Minecart, 1 Spanner and 99 Rails.
##Rail Position Tests
Use give Rails:Rails
to get more track as needed.
###Corner Joint Corner.gif
- Place three rails in an elbow bend
- Check the centre rail has changed to a bend
###Tee Joint T.gif
- Place four rails in a T-shape
- Check that the centre rail has turned into a junction
###Straight Track Straight.gif
- Place three rails in a straight line
- Check they all snap to face the same way
###Sloped Track Slope.gif
- Place three tracks in a line, with the end one elevated on one block
- Verify the middle track is sloped upwards towards the elevated block
###Inverted Tee Invert T.gif
- Create a Tee joint as detailed Above
- Press
e
on it with the spanner - Verify the direction has switched
- Press
e
on it with the spanner again - Verify the direction has switched back
##Vehicle Tests
###Locomotive
- Place tracks in a small loop (eg 4x8 blocks)
- Place a Locomotive on the loop
- Verify it appears and is on the tracks
- Activate it by pressing
e
over it - Verify it moves around the loop smoothly without pausing or de-railing
- Deactivate it by pressing
e
again over it - Verify it quickly stops
- Left click the locomotive and verify it is destroyed
###Minecart
- Place tracks in a small loop (eg 4x8 blocks)
- Place a minecart on the loop
- Verify it appears and is on the tracks
- Enter it by pressing
e
over it - Verify you enter the cart
- Move the cart by holding the forward arrow
- Verify the cart moves around the loop
- Release the forward arrow
- Verify the cart does not stop
- Exit the cart using
e
over it again - Destroy the cart by left clicking it
- Verify the cart is destroyed
##Linkage
- Place tracks in a small loop (eg 4x8 blocks)
- Place a locomotive on the track
- Place a minecart behind the locomotive
- Equip the spanner
- Right click the locomotive
- Verify the cart turns green when you hover over it
- Right click the cart
- Un-equip the spanner
- Press
e
on the locomotive - Verify both it and the cart start moving
- Press
e
on the locomotive again - Verify both it and the cart stop moving
- Equip the spanner again
- Right click on the locomotive
- Verify the cart turns red when you hover over it.
- Right click the minecart
- Un-equip the spanner
- Press
e
on the locomotive - Verify only the locomotive moves