Generating Mocks for tests #3171
AurelienFT
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
With the new architecture of modules, when we want to create a mock for a module we need to reimplement the functions of the controller trait with channels so that in tests we can't either return a default data or do something else.
This is very repetitive to write and need to be updated when we update the controller.
Idea
This type of tasks can be easily handle by macro. When we will finish the refactor of all modules they will have the same architecture and so we could generate the mocks easily.
Beta Was this translation helpful? Give feedback.
All reactions