Skip to content
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

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

chris-steele
Copy link
Contributor

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.

@chris-steele chris-steele marked this pull request as draft June 11, 2024 08:28
@chris-steele chris-steele self-assigned this Jun 11, 2024
@chris-steele
Copy link
Contributor Author

chris-steele commented Jun 12, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

4 participants