Change Log
0.5.0 (2021-09-17)
Improvements
-
⬆️ - [Internal]
patch.releasetask to simplify releasing new versions of the library -
⬆️ - Support for mocking erlang modules (both sticky and non-sticky)
Features
None
Bugfixes
- 🐞 - Mocking erlang modules actually works now
Deprecations
None
Removals
None
0.4.0 (2021-08-09)
Improvements
-
⬆️ - [Testing] Testing Matrix updated to latest versions of Elixir / OTP
-
⬆️ - [Dependencies]
meckupdated to 0.9.2 -
⬆️ - [Documentation] README revamped
Features
-
🎁 - Added the
listen/3function to support listening to a process's messages -
🎁 - Added the
inject/3function to support updating the state of a running process.
Bugfixes
None
Deprecations
None
Removals
None
0.3.0 (2021-07-12)
Improvements
-
⬆️ - [Internal]
Patch.Function.for_arity/2now accepts an anonymous function it will call instead of a term to return. -
⬆️ - [Internal]
Patch.find_functions/1andPatch.find_arities/2use__info__/1now instead of doing 256function_exported?checks per function.
Features
-
🎁 - Added the
fake/2function to add support for module fakes. -
🎁 - Added the
real/1function so module fakes can call the real module.
Bugfixes
None
Deprecations
None
Removals
None
0.2.0 (2021-03-03)
Improvements
- ⬆️ - Removed the arity limitation, can now patch functions of any arity
Features
- 🎁 - Added the
assert_any_call/2andrefute_any_call/2assertion functions
Bugfixes
None
Deprecations
None
Removals
None
0.1.2 (2021-01-28)
Improvements
- ⬆️ - Relaxed Elixir version requirement down to 1.7
Features
None
Bugfixes
None
Deprecations
None
Removals
None
0.1.1 (2020-04-27)
Improvements
- ⬆️ - Made the library actually work
Features
None
Bugfixes
- 🐞 - Bugfix to make the library actually work
Deprecations
None
Removals
None
0.1.0 (2020-04-21)
Improvements
- ⬆️ - Patch released to the world. Easy to use and ergonomic Mocking for Elixir.
Features
-
🎁 -
patch/3allows the patching of a module's function with a function. -
🎁 -
patch/3allows the patching of a module's function with a static return value. -
🎁 -
spy/1allows spying on a module. -
🎁 -
restore/1allows removing patches and spies from a module. -
🎁 -
assert_called/1allows for asserting that a patched or spied function has been called with the expected pattern of arguments. -
🎁 -
refute_called/1allows for refuting that a patched or spied function has been called with the expected pattern of arguments.
Bugfixes
None
Deprecations
None
Removals
None