ChrisNeedham24 / microcosm

A little 4X game written using Pyxel.
GNU General Public License v3.0
11 stars 8 forks source link

Add tests #114

Closed ChrisNeedham24 closed 1 year ago

ChrisNeedham24 commented 1 year ago

For all non-display code, it would be good to have some level of testing. Particularly for when refactors occur, as sometimes it's hard to verify the changes.

ChrisNeedham24 commented 1 year ago

Will need to update contribution guidelines and other doco once this is in.

ChrisNeedham24 commented 1 year ago

Also add to CI

ChrisNeedham24 commented 1 year ago

Now adding a coverage module to this too, which will need to go into the CI. The fail threshold can be determined once all the tests are done.

ChrisNeedham24 commented 1 year ago

Before this gets merged, all of the test models that are currently being reset in the setUp methods should probably just be being defined in there.