All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Leave module loaded state as it was #228
- Fix misleading not_mocked errors when when unloading a mock #231
- Fix calling mocked modules from expectations fun #232
- Compatibility for Erlang versions below 22. Meck will follow the compatible Erlang versions of Rebar 3 for future releases. Older versions might still work but there is no guarantee and no support.
0.9.2 - 2021-03-06
- Fix a Dialyzer warning on OTP 24 #223
0.9.1 - 2021-02-17
- Module references in type specs were not included when renaming modules #206
- The passthrough clause was not always the last clause in an expect with multiple clauses #216
0.9.0 - 2020-06-25
- Support Erlang 23.0 8c16751
- Add a new function
mocked/0
that returns which modules are currently mocked #210
- Validate the options being passed to meck:new #204
- Do not attempt to generate dependencies when mocking 9b3ce75
- Add compiler application to dependencies #209
- meck:ret_spec() opaqueness violates documented usage patterns #212
0.8.13 - 2019-01-08
- Remove compatibility for Erlang R15 and R16 #198
- Crash when mocking Elixir 1.8-rc.0 compiled module #201
- Exclude from_core option from compile_info when compiling #202 (josevalim)
- Isolate backup *.coverdata from other beam instances #200 (dcsommer)
0.8.12 - 2018-08-08
- History item is not kept while module compiler is running #194
0.8.11 - 2018-07-12
- OTP 21 compatibility when using stack traces #193 (massemanet)
0.8.10 - 2018-06-26
- Support Erlang/OTP 21.0 #190 (michalwski)
- Add meck:expects/1,2 #187 (elbrujohalcon)
0.8.9 - 2017-11-27
- Migrate to Rebar 3 and rebar3_hex #155
- Support running meck with modules built with '+deterministic' compile… #185 (nablaa)
- How do I run coverage results after using meck? #181
- Fix for Rebar 2.x.y on secondary arches #183 (lemenkov)
0.8.8 - 2017-08-29
{:error, {:no\_abstract\_code, ...}}
with Elixir 1.5.0-rc.0 and Erlang 20.0 #179
0.8.7 - 2017-06-29
- Remove dialyzer attributes when creating mock (Erlang 20.0) #178
0.8.6 - 2017-06-28
- Remove dialyzer attributes when creating mock 3b772d0
0.8.5 - 2017-06-28
- Support Erlang 20 #175
- Support Erlang 19 #168 (WramblinWreck)
- Add meck:get_state/0, meck:reset_state/0 #125
- Add
meck:result/4-5
that returns the result value of a particular function #163 (amutake)
- Mocked module will return empty function clause error #167
- Deleting an expectation in passthrough mode does not restore original function #88
- Passthrough crashes without +debug_info #14
- fix behavio(u)r attributes validation on Erlang R20 #176 (RoadRunnr)
- Fix errors in capture/5, capture/6 documentation #172 (marco-m)
- Fix eunit compile failure on Erlang 17+ (hamcrest) #161 (marco-m)
0.8.4 - 2015-12-29
- Update 'problematic modules list' #156 (lilrooness)
- Document the caveat with mocking module-local calls. #145 (bpuzon)
- FIX: optional_callbacks #151 (soranoba)
- Fix race condition between meck:unload/1 and calls to the mocked module #150 (dszoboszlay)
0.8.3 - 2015-06-09
- Support Erlang 18.0 #139 (gomoripeti)
- Allow hiding 'on_load' attribute. #131 (rlipscombe)
- Removed test and doc from target all in Makefile #126 (jfacorro)
- Fix typo #143 (derek121)
- Run tests in travis #138 (gomoripeti)
- Please document that modules can be not meck'able #135
- crypto module #59
- Fix variable exported from case #128 (hazardfn)
0.8.2 - 2014-05-05
-
Implicit new #80
-
Should return compilation errors #33
-
Better documentation #79
- With a bogus test instantiator, meck fails with {error, enoent} in meck_cover:read_cover_file/1 #114
- Unable to mock lists module #87
- Do not consider a 3-tuple return value as an exception #113 (lucafavatella)
0.8.1 - 2013-08-29
0.8 - 2013-08-17
-
Capture argument #86
-
Wait for a number of function calls #81
-
Mocking of parameterized modules #4
-
Allow calling original function from within expect fun #2
-
Make
undefined\_module
error contain module name #96 (horkhe) -
Support for location included in stack traces in Erlang R15 #52 (bjnortier)
- Make
passthrough/1
andfunc/1
into aret\_spec
and func #91 (horkhe - Refactor meck into smaller functional modules #82 (horkhe)
- R16A preview - parameterized modules are no longer supported #94
- Remove unsupported option from the app.src file #101 (amiramix)
- Remove parametrized module test #95 (norton)
- Warning from reltool on unexpected item
build\_dependencies
#92 - http://eproxus.github.io/meck 404 #103
- meck eunit tests fail on R15B #51
- meck:new fails if running in embedded mode and module not loaded #35
- Support meck:expect with improper list mock data #102 (adbl)
- Fix failing build. #98 (cmeiklejohn)
- fix path of rebar #69 (yamt)
0.7.2 - 2012-05-06
- Remove Erlang R15B support #54 (michaelklishin)
- Mocking of sticky modules #7
- Rz passthrough cover #56 (rzezeski)
- Mock parametrized modules #55 (shino)
- Clean test directory #50 (norton)
- New features - pid in history and count_calls and wildcard_count_calls functions #40 (daha)
- Include meck:new/2 arguments in errors #39 (legoscia)
- .travis.yml config without rebar #38 (wardbekker)
- Filter out parse_transforms from compilation options #32 (djnym)
- remove repetition; typo #57 (Erkan-Yilmaz)
- Improved tests: Added an ok in the end of the tests that use a helper function with asserts #43 (daha)
- Making all the test funs in the foreach in meck_test_/0 fully qualified funs #44 (daha)
- Remove IDE project artifacts #46 (xenolinguist)
- Remove Erlang R13B support #54 (michaelklishin)
- dialyzer warnings with meck (73c0b3e) #58
- Inconsistency in documentation #49
- meck:unload/0 sometimes crashes #48
- Add test/cover_test_module.beam to rebar.config's clean files #47
- Fix typo in no_passthrough_cover atom #62 (garret-smith)
- Verify history/2 returns events in the correct order & fix to flaky history_by_pid_/1 test #42 (daha)
0.7.1 - 2011-07-18
- Can I call original function with different arguments? #30
0.7 - 2011-07-13
- Enable mocking of sticky modules (not used by code_server) #29 (xenolinguist)
0.6.3 - 2011-06-30
- Interface inconsistency #8
0.6.2 - 2011-06-09
- Fix re adding shortcut expects 9b8934a
- Fix returning of opaque terms in shortcut expectations b1904a2
0.6.1 - 2011-06-08
- use localhost for remote test rather than hostname #27 (joewilliams)
- Makefile requires local rebar and documentation says rebar on path #28
0.6 - 2011-05-25
0.5.1 - 2011-05-23
- Replace fail_on_warning with warnings_as_errors ddd9e3b
0.5 - 2011-04-12
- dialyzer unmatched return errors #24