-
Notifications
You must be signed in to change notification settings - Fork 27
Test Plan
Some potions may not work for varied reasons. They are marked.
- Download or update the Potions Module
- Create a new world with only Potions and it's dependencies activated
- Check that the world is created and loads without crashes or hanging
Each potion has a subtly different test procedure but the majority is the same. In the below plan see the potion's specific section for it's Pre-Use and Post-Use steps. The command box can be opened by pressing f1
or by pressing fn
andf1
jointly.
A list of all potion names can be found in the source(TODO LINKY) and in game by running the command search Potions
- Spawn in the potion using
give Potions:name
- Verify it spawned in and that it's texture and name exist
- Check the name and description for errors (eg, spelling)
- Perform the potions Pre-Use steps (See that potion's specific section)
- Use the potion by selecting it and right clicking
- Verify the potion's item is removed
- Verify the use sound is played
- Perform the Post-Use steps (See that potion's specific section)
Pre-Use
- Record the Jump Speed, Swim Speed and Walk Speed
Post-Use
- Verify that the Jump Speed, Swim Speed and Walk Speed have doubled
- Verify that the effects last for 10 seconds
Physical Damage Resistence & Walk Speed
Pre-Use
- Note the Walk Speed
- Use
healthMax
to heal yourself fully - Use
setRegenRate 0
to reduce regeneration rate - Use
damage 60
to harm yourself - Use
showHealth
and note the max health and current health - Use
give Core:Dirt
and stand on a pillar of 5 blocks
Post-Use
- Use show health and verify that 30 points of health have been healed, the max health has increased by 50% and regeneration rate is 2
- Check that the Walk Speed has been tripled
- Walk off the pillar and veirfy it damages
- Verify it lasts for 15 seconds
Requires an ailment
Requires poison
Pre-Use
- Press space to jump and whilst in mid-air attempt to jump again
- Verify the second jump doesn't occur
Post-Use
- Press space to jump and whilst in mid-air attempt to jump again
- Verify a second in-air jump is performed
- Verify a third mid air jump doesn't suceed
- Verify it lasts for 15 seconds
Pre-Use
- Attempt to jump and check it works
Post-Use
- Attempt to jump and verify it doesn't work
- Verify there is a sound played (TODO: Check this is intended)
- Verify it lasts for 15 seconds
Pre-Use
- Heal yourself using
healthMax
- Remove all health regen with
setRegenRate 0
- Use
showHealth
and note your current health level
Post-Use
- Use
showHealth
and check your health has gone down by 40 points
Pre-Use
- Use
healthMax
to heal yourself fully - Use
setRegenRate 0
to remove all health regen - Use
damage 25
to reduce health by 25 - Use
showHealth
and note your current health
Post-Use
- Use
showHealth
and check your health has gone up by 20 points
maxHealth Pre-Use
- Use
showHealth
and note the health level
Post-Use
- Use
showHealth
and check your max health has increased by 50% - Verify the effect ends after 30 seconds
Item speed effects negligable
Jump Speed
Pre-Use
- Press space to jump and note the speed
Post-Use
- Press space to jump and verify the speed has doubled
- Verify the effect lasts 10 seconds
Item Use Speed
Walk, Swim and Jump Speeds
Pre-Use
- Note the current Walk, Jump and Swim Speeds
- Press space to jump and attempt to jump again whilst in mid air. Verify it fails
Post-Use*
- Check the Walk, Jump and Swim speeds have all doubled.
- Press space to jump and attempt to jump again whilst in mid air.
- Verify the second jump suceeds but a third fails
- Verify the effect lasts for 15 seconds
Poison
Jump, Swim & Walk Speeds and Poison
Pre-Use
- Note the Jump Speed, Swim Speed and Walk Speed
Post-Use
- Verify that the Jump Speed, Swim Speed and Walk Speed have doubled
- Verify that the effects last for 15 seconds
Regen Rate
Resist Physical Damage
Walk Speed
Pre-Use
- Note the Walk Speed
Post-Use
- Verify the Walk Speed is halved
- Verify the effect lasts for 10 seconds
Swim Speed
Pre-Use
- Note the current Swim Speed
Post-Use
- Verify the Swim Speed has doubled
- Verify it lasts for 10 seconds
Walk Speed
Pre-Use
- Use
setMaxHealth 200
to double your health - Use
setRegenRate 0
to turn off regen - Use
damage 150
to harm yourself - Note the Walk Speed
Post-Use
- Use
showHealth
and verify that 100 points is healed. - Verify that the walk speed is doubled
- Verify the effect lasts for 10 seconds