gabriel-lau / Project_Kavala

A simple python-based maze game by a group of Ngee Ann Polytechnic students to learn about the development lifecycle of DevOps.
0 stars 0 forks source link

[5][Dev Test Case] Display main menu #16

Open gabriel-lau opened 4 years ago

gabriel-lau commented 4 years ago

Test cases for #15 and the results

halfofning commented 4 years ago

Unit tests done for displaying main menu.

Scenario Description Test Values Expected Outcome Actual Outcome Pass/Fail
1 test_display_menu: Test whether menu is displaying correctly. display_menu() "MAIN MENU\n", "=========\n", "[1] Read and load maze from file\n", "[2] View maze\n", "[3] Play maze game\n", "[4] Configure current maze\n\n", "[0] Exit Maze\n" Same as expected Pass
2 test_looping_menu_exit: Test whether while loop ends when option 0 is selected. Enter your option: 0 main([]) == False Same as expected Pass
halfofning commented 4 years ago

Test coverage achieved for displaying menu. Some parts such as error messages (print statements) when an option is selected were not tested using automated testing.

Screenshot 2020-02-06 at 12 44 25 AM