hwoodward / Remote-Card-Games

Program for playing card games online/remotely. Goal is to play a game of hand and foot with multiple groups in different locations.
MIT License
2 stars 1 forks source link

Unit Testing #14

Closed hwoodward closed 5 years ago

hwoodward commented 5 years ago

need to define how much we force ourselves to do and where it lives, then do it for what code we have already written. Steps

hwoodward commented 5 years ago

Notes from before I made the checklist for reference:

hwoodward commented 5 years ago

If anyone has thoughts/comments/knowledge about unit testing, especially in python and/or with network calls/APIs speak up. I probably need to google best practices about the network api stuff (and maybe python too)

hwoodward commented 5 years ago

oops.

hwoodward commented 5 years ago

We now have documentation on what should be unit tested in the contributing guide - its common code and state trackers. The network calls I decided it would be just one more place for the api to be coded in correctly and the data transmission is tested in podsixnet. The UI is hard to test at all and it gets its data via the state tracker - so while testing its render is expected to be done on edit I don't think a unit test is needed.