jjh42 / mock

Mocking library for Elixir language
MIT License
646 stars 81 forks source link

Feature Request: Support per-process mocking #129

Open jtrees opened 3 years ago

jtrees commented 3 years ago

It would be cool if it was possible to use mock with async: true in tests. Mox supports this.

Olshansk commented 3 years ago

Interesting... I'm curious what feature(s) this library has that Mox doesn't that is still keeping you with library?

jtrees commented 3 years ago

I don't want to be forced to add behaviours just to mock something.

ffloyd commented 2 years ago

+1

Mox requires you to add behaviors and substitute modules globally in the test scope. While it can be true from an idealistic perspective, on the practice: