-
Notifications
You must be signed in to change notification settings - Fork 32
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
Begun adding unit tests #220
base: master
Are you sure you want to change the base?
Conversation
@cahirodoherty-learningpool, @oliverfoster, @swashbuck, @eleanor-heath I've added some more tests and reduced the amount of mocking. To date there is coverage for models, controller and TrickleButtonModel. My approach is to treat these modules as the units under test. Therefore I have mocked imports as appropriate, e.g. the controller test spec mocks the functions it imports from models etc. I'd appreciate any reviews/feedback, particularly if you have strong inclinations about where the boundaries of the 'units' should lie and thoughts on mocking. |
Hi @eleanor-heath, @cahirodoherty-learningpool - not sure if you are still involved with the formal testing work, but if you are and have time, I'd appreciate your thoughts on this PR. It is just a WIP at the moment. I've added some unit tests for trickle and hope to expand it out in due course.