Search⌘ K
AI Features

Creating Some Tests: Checking the Guesses

Explore how to design and execute tests that simulate gameplay by making repeated guesses. Understand how to verify response status codes, enforce guess limits to avoid infinite loops, and validate game outcomes. Learn to perform cleanup by deleting test games from the database to maintain data integrity within a full stack development context.

Playing the game

Now, we get to the good part: we play a game. This is done by making repeated guesses until the game ends, and checking response status codes along the way. We allow the guesses to repeat or to be non-alphabetic. A real stress test ...