Add Integration Tests
Opened this issue · 1 comments
Issue Context
An early attempt was made to add integration tests to the app using elm-program-test and the Effects pattern but the effort was stopped due to confusion at the time (on my part) on how to nest the effect type through multiple modules.
But it's really important to have integration tests for future feature additions.
Suggested Solution
- refactor all application update functions to use a
Model, Effect
pattern vs aModel, Cmd Msg
pattern. - Hook up the tests in the ProgramsTest.elm file.
- Create a single integration test that simulates the happy path of a game of quarto that ends with the computer players victory.
- The test should supply the moves and pieces chosen by the players and the program should be able to determine who the victor is correctly, and do the appropriate state transition to a
Won: Winner
Game status.
- The test should supply the moves and pieces chosen by the players and the program should be able to determine who the victor is correctly, and do the appropriate state transition to a
Alternatives Considered
N/A
Additional Resources
See here in the read me for how to run and install the application.
See here in contributing for the basics on forking and cloning the repository.
Thank you for the issue! We'll take your request into consideration and will follow up soon if we decide to tackle this issue.
To all contributors: any issue that is labeled Status: Available
is up for grabs.
To claim an issue to work on, please leave a comment. If you've claimed the issue and need help, please leave a comment letting us know and we can schedule some time to help.
For full info on how to contribute, please check out our contributors guide.