absmach / magistrala

Industrial IoT Messaging and Device Management Platform
https://www.abstractmachines.fr/magistrala.html
Apache License 2.0
2.47k stars 671 forks source link

Generate mocks with mockery for readers #2166

Closed JeffMboya closed 5 months ago

JeffMboya commented 5 months ago

Is your feature request related to a problem? Please describe.

Yes, the feature request is related to the problem of testing readers. Currently, our tests are not isolated from the implementation details of readers, which can lead to brittle tests.

Describe the feature you are requesting, as well as the possible use case(s) for it.

We are requesting the feature of mock generation for readers. This feature will allow us to write unit tests that are isolated from the implementation details. The use case for this feature is primarily in testing - it will allow us to write more robust and reliable unit tests for the Users service.

Indicate the importance of this feature to you.

Must-have