Skip to content

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