-
Notifications
You must be signed in to change notification settings - Fork 2
Testing Plan for Cooking Ingredients
Calvin John edited this page Aug 29, 2024
·
5 revisions
- Ensure that ingredients get cooked when they are placed into a station and cook times are met.
- Ensure that Event triggers and listeners work.
- Ensure that Timers work by registering with
ServiceLocator
. - Ensure accurate transitions of ingredient states when its cook time is met.
- Ensure cooking stops as expected.
- Ensure ingredients get burnt when they are placed on a station 15 seconds or longer after their cook times are met.
- Specific calculations and edge cases of
endCookTime
member variable ofCookIngredientComponent
weren't explored. Nor were station types or states taken into account for the testing. The testing used the basic station type "COOK_TOP" and station state was set to "NORMAL'.i.e., the triggers resulted in a call to `CookIngredientComponent.cookIngredient(Station_state="NORMAL", oven_multiplier=1)
Create mock objects for GameTime
, Event_Handler
, IngredientComponent
. Initializes new Entity
and new CookIngredientComponent
. The 2 components are added to the Entity
, and then Entity.create()
is called to setup the ECS lifecycle.
Verifies that CookIngredientComponent
successfully interacts with the components StationItemHandler
and IngredientComponent
.
Inventory System
Scoring System
Food Recipes
Level System
Player Actions
Ordering System
Stations
Items
Map Design
Customers
Pause Menu
Upgrades
End of Day Display
Day Night Cycle
Moral System
Debug Terminal
Game Interactions Tutorial
Backstory Cutscenes
Entities and Components
Input Handling
Game Screens and Areas
Fire Extinguisher Handler Component
MainGameActions Create Docket Triggers
Main Game Order Button Display
BackstoryCutsceneDisplay Test Plan
Test Plan for MainGameOrderTicketDisplay
Test Plan for MainGameOrderBtnDisplay
Test Plan for DocketLineDisplay
Test plan for RandomComboService
Test plan for SpeedBoostUpgrade
Test plan for DancePartyUpgrade