Repository navigation
Test plan sprint 2
Veenit254 edited this page Sep 17, 2026
·
3 revisions
Testing is divided into automated unit tests and manual gameplay tests.
cd source
./gradlew spotlessCheck :core:testUsed JUnit testing and mostly got 100% coverage on instructions and branches
- EnemyStatDisplayTest.java
- PlayerStatsDisplayTest.java
- StatusEffect.java
- StatusEffectsControllerComponentTest.java
- StatusEffectsFactory.java
- Player HUD -> Start the game, you can see the player health bar and other relevant stats at the top left corner
- 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
- 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. |
- 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
- When run the game you will find out the new MainMenuScreen
- 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.