rewire icon indicating copy to clipboard operation
rewire copied to clipboard

Dependency injection for Elixir. Zero code changes required.

Results 7 rewire issues
Sort by recently updated
recently updated
newest added

Hello, I've taken a shot at https://github.com/stephanos/rewire/issues/10. The implementation is an adaptation of the mimic solution linked in the issue. I'm gradually adopting rewire in a real project using this...

One downside of running tests against a rewired copy of the actual module is that code coverage data is not available anymore. That's because Erlang's `cover` modifies tested modules by...

When rewiring a module in a test, we were noticing that it wasn't replacing all of the occurrences of a module. We eventually tracked down that the module in question...

Addressing https://github.com/stephanos/rewire/issues/20

I've tried using rewire and test coverage but I always get an error on the output of what happened. The cover files get created, and the coverage gets reported, but...

Hey there! I found this library via [this](https://blog.appsignal.com/2024/06/11/advanced-dependency-injection-in-elixir-with-rewire.html) blog post and wanted to include it in my [project](https://github.com/kieraneglin/pinchflat/). One thing I've found is that it doesn't seem to support rewiring...

When I run `mix test --cover`, I'm seeing rewired modules in the coverage report: ``` Generating cover results ... Percentage | Module -----------|-------------------------- 78.57% | Foo.Bar.Baz.R5115 ``` Is this expected...