Skip to content

Commit dd5a620

Browse files
author
kevin barry
committed
Added tests to readme
1 parent c6bced7 commit dd5a620

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

README.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,40 @@ Question[] loadQuestions()
271271
return questionList.questions;
272272
}
273273
```
274-
274+
***
275+
## Testing
276+
### Main Menu
277+
| Test | Expected Result | Actual Result | PASS/FAIL |
278+
| ----- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | --------- |
279+
| Saying "new game" should launch a new game | Game scene loads | Game scene loaded | **PASS** |
280+
| Saying "play game" should launch a new game | Game scene loads | Game scene loaded | **PASS** |
281+
| Saying "play" should launch a new game | Game scene loads | Game scene loaded | **PASS** |
282+
| Saying "quit" should terminate the game | Game shuts down | Game shut down| **PASS** |
283+
| Saying "exit" should terminate the game | Game shuts down | Game shut down| **PASS** |
284+
| Clicking [new game] should launch a new game | Game scene loads | Game scene loaded | **PASS** |
285+
286+
### In Game Scene
287+
| Test | Expected Result | Actual Result | PASS/FAIL |
288+
| ----- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | --------- |
289+
| Saying "new game" should launch a new game | Game scene loads | Game scene loaded | **PASS** |
290+
| Clicking [new game] should launch a new game | Game scene loads | Game scene loaded | **PASS** |
291+
| Saying "show scoreboard" | Scoreboard comes into view | scoreboard came into view | **PASS** |
292+
| Saying "scoreboard" | Scoreboard comes into view | scoreboard came into view | **PASS** |
293+
| Saying "score" | Scoreboard comes into view | scoreboard came into view | **PASS** |
294+
| Saying "pause" | Scoreboard comes into view | scoreboard came into view | **PASS** |
295+
| Saying ["a","b","c","d"] | Should select and highlight answer | answer was selected and highlighted| **PASS** |
296+
| Saying ["a","b","c","d"] | Should select an answer and prompt for final answer | answer was selected and final answer prompted | **PASS** |
297+
298+
### In Game Scene (Final Answer mode)
299+
| Saying "Yes" | Selects final answer | Final answer selected | **PASS** |
300+
| Saying "Final Answer" | Selects final answer | Final answer selected | **PASS** |
301+
| Saying "No" | deselects final answer | Final answer deselected | **PASS** |
302+
| Select correct answer | Correct answer highlighted and move to next question | Answer highlighted and new question loaded | **PASS** |
303+
| Select wrong answer | Wrong answer highlighted and game ends | Wrong answer highlighted and game ends | **PASS** |
304+
305+
306+
307+
| Saying "show scoreboard" should launch a new game | Game scene loads | Game scene loaded | **PASS** |
275308
## Conclusions & Recommendations–
276309
Conclusions are what you have learned from this project and the associated research. Recommendations are what you would do differently if you were to undertake the project again. The Reflective Piece–what I learned and “enjoyed”! This gives scope for a critical evaluation of the project and the objective that you tried to achieve
277310

0 commit comments

Comments
 (0)