Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganize tests around example scenarios #62

Open
djwhitt opened this issue Mar 30, 2017 · 0 comments
Open

Reorganize tests around example scenarios #62

djwhitt opened this issue Mar 30, 2017 · 0 comments

Comments

@djwhitt
Copy link
Contributor

djwhitt commented Mar 30, 2017

Right now the Zetawar tests are primarily organized around features. A typical test creates a game DB from a starter scenario and then executes transactions against the DB to get it into the desired state. While this accomplishes the goal of testing the relevant functionality, it makes the tests hard to follow since you have to mentally simulate the transactions to understand the game state being tested. I think a better way to organize the tests would be around larger example scenarios described by a combination of a starter scenario and a game state state data structure. Devcards could be used to visualize the scenarios to further reduce mental overhead. The downside of testing this way is that related functionality tests may not be grouped together. However, this seems like a relatively small price to pay for the increase in comprehensibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant