Create unit tests for models
Closed this issue · 6 comments
It'll be great to have unit tests set up for the models in this project to ensure they persist and retrieve data to the MySQL database correctly. I've already set up a testing framework per issue #9 which supports testing databases. If any other additional utilities are needed (like a mocking framework) I'm open to adding them too in their own individual PR. I recently included the MySQL schema in PR #13 for anyone that may need it.
I think doing a PR per model class is appropriate and I'll gladly support adding the Hacktoberfest label to any of them!
I can help you with that. I should have a PR tomorrow.
Awesome @mccullagh! I appreciate the help. Let me know if you have any questions or need help with anything.
Waiting on this issue to be resolved before I create a model test for UserDevicesViewModel
: https://github.com/dumblob/mysql2sqlite/issues/14