]> git.cworth.org Git - lmno-server/commit
test: Add initial testing for the Empathy game
authorCarl Worth <cworth@cworth.org>
Thu, 11 Jun 2020 19:11:45 +0000 (12:11 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 11 Jun 2020 19:11:45 +0000 (12:11 -0700)
commit8fb1176fb345a5a76610bb79192fa1e84496c08c
treefc0cb4ffd414ce55b35b6ba43ad85edc7cb60842
parent99fe599c5e4efab0fd285bc58f39ea09e2655dad
test: Add initial testing for the Empathy game

Two general techniques that are introduced here that will be useful
for testing of other games:

  * Registration of multiple user and events sent from each (see
    multiple cookies and a player-cookie parameter for many empathy_*
    functions)

  * Fishing events out of the event stream in response to client
    requests (see curl_get_event)

This testing gets as far as is currently implemented in the server:
Multiple player join, a category is submitted and voted one, the game
starts, all players submit answers, players receive words to judge,
and players submit word groups to capture the results of their
judging.

What's not yet tested is the next phase that's also not implemented
yet: The server using the submitted word groups to affect the scoring.
test