Test plan sprint 2 - UQcsse3200/2026-studio-4 GitHub Wiki

Testing is divided into automated unit tests and manual gameplay tests.

Automated Unit Testing

cd source
./gradlew spotlessCheck :core:test

Files:

Used JUnit testing and mostly got 100% coverage on instructions and branches

  • EnemyStatDisplayTest.java
  • PlayerStatsDisplayTest.java
  • StatusEffect.java
  • StatusEffectsControllerComponentTest.java
  • StatusEffectsFactory.java

Manual Testing

  1. Player HUD -> Start the game, you can see the player health bar and other relevant stats at the top left corner
  2. Interactable pop-up -> Start the game, go near any dungeon a pop up will appear at the top right corner, while you go near any charm drop a pop will appear
  3. Commands to test status effects -> Press F1, type command
Command Effect
effect burn Reduces health by 1 every second for 10 seconds.
effect regeneration Increases health by 1 every second for 10 seconds.
effect slow Reduces player speed by 0.5 for 10 seconds.
effect speed Increases player speed by 0.5 for 10 seconds.
effect vulnerable Makes player take double damage for 5 seconds.
effect freeze Reduces player speed to 0 for 3 seconds.
  1. Enemy health bar display -> When you start the game, go to any dungeon, enemy will spawn with its health bar and updates when get any damage
  2. When run the game you will find out the new MainMenuScreen
  3. Player shield-> HUD display on the left bottom corner shows the bar of extra health provided, further getting deliberately hit by enemies shows how both the shield options work.