If you prefer context function with MyApp.Blog.create_comment_for instead of ExMachina, and dislike mocking, how do you deal with complex context functions that needs to do a multitude of side effects such as:
- capture audit log changes via carbonite
- validate the user permission
- trigger webhook or API calls
- etc …
I understand wanting to test via the application functions but doesn’t it make the test suite much more complex and heavier?
Of course, it does not mean that you even need ExMachine, you could directly insert via Repo but you wrote that you prefer context functions so very curious if/how you handle that.






















