-
Notifications
You must be signed in to change notification settings - Fork 0
QuestManagerTests
remmy edited this page Sep 11, 2024
·
5 revisions
This plan outlines the tests conducted to ensure the correct functionality of the QuestManager, including adding, retrieving, progressing, completing, and failing quests.
-
AddQuest():
Verifies that a new quest can be added to the QuestManager and retrieved correctly. -
GetAllQuests():
Checks that all added given quests are returned when retrieving the list of all quests. -
HandleProgressQuest():
Tests that progressing a specific quest's task results in the quest properly being marked as complete. -
HandleQuestCompletion():
Ensures that specified events are triggered when a quest is completed. -
HandleFailQuest():
Verifies that failing a quest updates its state to "failed", which is used to halt any further progression. -
HandleNoQuestForProgression():
Confirms that no events are triggered when attempting to progress a non-existent quest. -
TestFinishingMultipleTasks():
Tests that multiple tasks within a quest can be progressed and completed in the correct order. -
HandleInvalidQuestProgression():
Ensures there is no invalid quest progression. -
TestQuestWithTaskAndAchievement():
Verifies that quests which have tasks and associated achievements correctly track progression and award achievements upon completion. -
shouldSaveLoadQuestProgression():
Tests that quest progression can be saved and loaded correctly. -
HandleAchievementCompletion():
Ensures that when a quest or task completion triggers an achievement, the achievement is properly awarded.