eproxus / meck

A mocking library for Erlang
http://eproxus.github.io/meck
Apache License 2.0
811 stars 231 forks source link

Reload module after meck:unload in embedded mode #227

Closed zsoci closed 3 years ago

eproxus commented 3 years ago

I think this is maybe a more appropriate way to check for embedded mode: http://erlang.org/doc/man/code.html#get_mode-0

I’m curious. What kind of tests are you performing that requires embedded mode?

zsoci commented 3 years ago

Thanks. Good idea. The real question is to make a difference or always reload the mecked and unloaded module. I am to perform tests on embedded mode after a release upgrade. To be as close to the release I would like to use the packed release s for upgrade and run the tests on the running and upgraded embedded node.