1
0
Fork 0
Better-Sprinting/TESTING.md

3.5 KiB

Complete test procedure

1. Controls Menu

  1. Click [Options] -> [Controls]
    • [Better Sprinting] button appears in place of [Auto-Jump] button
    • [Sprint] keybinding is removed
  2. Click [Better Sprinting]
    • ✔ All option buttons and labels are aligned properly
    • ✔ All option buttons have a tooltip
  3. Click [Disable mod]
    • ✔ All other option buttons except for [Sprint], [Mod configuration], [Auto-jump] become disabled

2. In-game Vanilla

  1. Transformer
    • ✔ Print out transformed instructions and ensure they make sense
    • ✔ Do a cursory check in-game with the mod disabled
  2. Press the [Sprint menu] key
    • ✔ Ensure clicking [Controls] and then [Done] returns to the sprint menu
  3. Click [Disable mod] again to re-enable the mod

3. In-game Custom

  1. Single key bindings
    • ✔ Sprint (tap & hold)
    • ✔ Sprint (toggle)
    • ✔ Sneak (toggle)
    • ✔ Ensure modifier combos work as expected
  2. Combined key bindings
    • ✔ While sprinting, hold sneak (hold) key to sneak, release to resume sprint
    • ✔ While sprinting, press sneak (toggle) key to sneak, press again to resume sprint
    • ✔ While sprinting after tapping or toggling, press the sprint key to stop sprinting
    • ✔ While toggle sneaking, press the sneak key to stop sneaking
    • ✔ While sneaking, both forms of sprinting are blocked
  3. Ensure remaining options behave as expected
    • ✔ Double tapping
    • ✔ Run in all directions
    • ✔ Fly boost
    • ✔ Fly on ground
    • ✔ Auto-jump
  4. Test special interactions
    • ✔ While toggle sneaking, open chat/inventory/pause menu to stop sneaking, close menu to resume sneaking
    • ✔ While submerged in water, all forms of sprinting trigger swimming
  5. Run /effect give @p minecraft:blindness 5 0
    • ✔ Ensure sprinting is blocked
  6. Run /effect give @p minecraft:hunger 10 255
    • ✔ Ensure sprinting stops once hunger drops too low

4. Modded Client + Modded Server

  1. Install the mod on client and server, and connect
    • ✔ Ensure /bettersprinting is only available to operators
    • ✔ The mod works and sprinting in all directions is disabled
  2. Run /bettersprinting setting runInAllDirs true
    • ✔ Sprinting in all directions can now be controlled in sprint menu
    • ✔ Restarting the server remembers the setting
  3. Run /bettersprinting setting runInAllDirs false
    • ✔ Sprinting in all directions no longer works
  4. Run /bettersprinting disablemod true
    • ✔ Client receives a notification message
    • ✔ Vanilla mechanics are forced as if [Disable mod] was enabled
    • ✔ Logging out and back in displays the message and keeps vanilla mechanics
    • ✔ Restarting the server remembers the setting
  5. Switch to a supported language other than English
  6. Run /bettersprinting disablemod false
    • ✔ Client receives a notification message (in the selected language)
    • ✔ Modded mechanics are restored
  7. Manually turn on [Disable mod]
    • ✔ Running the disablemod commands again does not show a notification message

5. Modded Client + Vanilla Server

  1. Run vanilla server, and connect
    • ✔ The mod works and sprinting in all directions is disabled

6. Vanilla Client + Modded Server

  1. Run modded server, switch to vanilla client, and connect
  2. Run /bettersprinting disablemod true
    • ✔ Client does not receive a notification message
    • ✔ Command response is displayed in English