Skip to content

Releases: edgurgel/mimic

Mimic 1.10.2

30 Oct 06:56
Compare
Choose a tag to compare

What's Changed

  • enable calling Mimic.allow when not using expectations by @michaelst in #82

New Contributors

Full Changelog: v1.10.1...v1.10.2

Mimic 1.10.1

11 Sep 08:40
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.10.0...v1.10.1

Mimic 1.10.0

02 Sep 09:38
Compare
Choose a tag to compare

What's Changed

  • Include .formatter.exs in published files by @bjyoungblood in #78
  • Experimental: Type checking for stubs and expectations by @edgurgel in #77

New Contributors

Full Changelog: v1.9.0...v1.10.0

Experimental type checking for copied modules

One can pass type_check: true when a module is copied to also get the function expected/stubbed to
validate the arguments and return value using Ham which is essentially
what Hammox improved on Mox.

Mimic.copy(:cowboy_req, type_check: true)

If there is any problem with the arguments or return values of the stubbed functions on your tests you might see
an error like this one:

     ** (Mimic.TypeCheckError) :cowboy_req.parse_qs/1: 1st argument value %{} does not match 1st parameter's type :cowboy_req.req().
       Could not find a map entry matching required(:method) => binary().

This feature is experimental at the moment which means that it might change a little bit how this
is configured and used. Feedback is welcome!

Mimic 1.9.0

18 Jul 08:17
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.8.2...v1.9.0

Mimic 1.8.2

23 Jun 09:51
Compare
Choose a tag to compare

Fix cover error when JIT is enabled. Issue #70

Full Changelog: v1.8.1...v1.8.2

Mimic 1.8.1

22 Jun 12:14
Compare
Choose a tag to compare
  • Fix Mimic copying for erlang modules

Mimic 1.8.0

22 Jun 09:43
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.7.4...v1.8.0

Mimic 1.7.4

28 Jul 08:15
Compare
Choose a tag to compare

What's Changed

  • fix: Copy fails with umbrella mix test stale (make Mimic.copy idempotent) by @dylan-chong in #47

Full Changelog: v1.7.3...v1.7.4

Mimic 1.7.3

26 Jul 08:18
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.7.2...v1.7.3

Mimic 1.7.2

23 Apr 09:21
Compare
Choose a tag to compare

What's changed

Full Changelog: v1.7.1...v1.7.2