Skip to content

Title and Context Screen Testing Plan

MrMeatballs edited this page Sep 16, 2021 · 2 revisions

Sprint 2

Tested

Created tests for three classes:

  • ContextScreenActions

    • playGame - Tests whether the play Game function is working by changing the game screen from the CONTEXT screen to the MAIN_GAME screen
  • TitleScreenActions

    • goMenu - This tests whether the goMenu function is working by changing the game screen from the TITLE_SCREEN to the MAIN_MENU screen
  • TitleScreen

    • TitleScreen - Tests whether the title screen is working in creation
    • goMenu - This tests whether the goMenu function is working by changing the game screen from the TITLE_SCREEN to the MAIN_MENU screen from the Title Screen rather than the TitleScreenActions.
    • keyDown - Tests whether the key down function is working by reading a keyboard input

Future Testing

  • keyDown - Could use more tests in ensuring a proper connection is made between TitleScreen and KeyboardTitleInputComponent.
    • Could test other keys users could press (e.g. 'etc' key or 'power button').
    • Could enhance with more mock tests to fully emulate the game running in the test.
Clone this wiki locally