Skip to content

Testing Plan for Cooking Ingredients

Calvin John edited this page Aug 29, 2024 · 5 revisions

CookingComponent test plan

Purpose

  • 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.

What wasn't tested:

  • Specific calculations and edge cases of endCookTime member variable of CookIngredientComponent 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)

Setup

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.

Expected Outcome

Verifies that CookIngredientComponent successfully interacts with the components StationItemHandler and IngredientComponent.

Table of Contents

Home

Team Design Document

Game Features

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

Game

Getting Started

Entities and Components

World Backstory

Service Locator

Loading Resources

Logging

Unit Testing

Debug Terminal

Input Handling

UI

Animations

Audio

AI

Physics

Game Screens and Areas

Terrain

Concurrency & Threading

Settings

Map Design

Test Plans

Sensor Component

Customer Sensor Component

Interaction Component

Inventory Component

Inventory Display

Station Meal Component

Station Progress Display

Keyboard Input Component

Fire Extinguisher Handler Component

Score System

HoverBox Component

MainGameActions Create Docket Triggers

End Day Display Component

Cutscene Area

Docket

Docket Line Display

Docket Meal Display

Main Game Order Button Display

Order Actions

Recipe

Ticket Details Component

BackstoryCutscene Test Plan

BackstoryCutsceneDisplay Test Plan

Test Plan for Tutorial

Keybinds

Keybinds Test Plan

Test Plan for MainGameOrderTicketDisplay

Test Plan for MainGameOrderBtnDisplay

Test Plan for Docket

Test Plan for DocketLineDisplay

Test Plan for OrderActions

Ticket Details

Test plan for RandomComboService

Test plan for LoanUpgrade

Test plan for UpgradesDisplay

Test plan for RageUpgrade

Test plan for SpeedBoostUpgrade

Test plan for DancePartyUpgrade

Test plan for ExtortionUpgrade

Troubleshooting

MacOS Setup Guide

Clone this wiki locally