Polishing Code Testing - UQdeco2800/2022-studio-1 GitHub Wiki

Introduction

In accordance with the Test Plan tests were written for the many different classes.

Tests

Requirement Test case addressed by
Movement AI should Generate a path shouldGeneratePath
Movement AI should move in the UGS based on path shouldMoveOnUpdate
Movement AI should be able to pathfind around objects shouldPathAroundObjects
TerrainFactory should load levels from map files shouldLoadLevels
TerrainFactory should create generic tiles shouldLoadTiles
No part of the map should be empty shouldFillMap
Map size should be able to shink/expand shouldIncrementLevel
Buildings on water should be destroyed shouldDamageBuildings
Map tiles should be changed to night versions on time change shouldChangeAtNight
UGS Should be updated when map level changes shouldUpdateUGS
ProjectileFactory should create a projectile shouldCreateProjectile
MainGameTutorial should create and dispose of actors shouldCreateAndDispose

Future Updates

In the future, the team will need to expand upon tests for all classes to ensure test coverage is as high as possible.