-
Notifications
You must be signed in to change notification settings - Fork 1
Inventory Component Unit Testing
TimothyLam123 edited this page Oct 18, 2022
·
4 revisions
This testing plan is only for Unit test for InventoryComponent.
Path for InventoryComponent and InventoryComponnet
Aiming to the 100% coverage, we decided to test every function in InventoryCompoent. Hence there are all the things we need to test.
- Be able to create an empty inventory
- Be able to set combat animation, register animation, and cancel animation.
- Be able to equip, unequip or swap equiped weapon or armour
- Be able to get or remove equiped weapon or armour
- Be able to add or remove item, and sort the same items in the same slots
- Be able to check whether a item is in inventory
- Be able to check how many items in one slots
- Be able to apply weapon's or armour's effect to player while the player equip them
- Be able to open inventory back pack
- Be able to add items to quick bar and get item from quick bar
Before testing, initialize all the staff that could be used.
Testing create empty inventory.
Testing combat animator
Testing equip weapon or armour
Testing add item and remove item
Testing has item and items quantity
Testing apply effects to player
Testing open inventory backpack
Testing add item to quick bar and get item from quick bar
- Li-Sung Ou
- GitHub: @PeterOu8
- Discord: Secret Agent Randy Beans#6754
- Slack: Li-Sung Ou
- Siu Ming Lam
- GitHub: @TimothyLam123
- Discord: Timothy_Lam#2101
- Slack: Siu Ming Lam