Note that this release changes some default command line behavior. It's not a breaking change -
all previous functionality is still supported, but it means you may need to pass in some additional
command line flags (specifically
--debug) to get the same behavior
as before, if you depended on either the
matches arrays recorded
with imposters and stubs previously.The following changes are part of this release.
- Thanks to Paul Phillips, mountebank now works with node v0.12 and v4.0.
timestamphas been added to each element in the
requestsarray to allow for richer verification testing.
matchesarray is only included if you use the
--debugcommand line parameter. In practice, this array confused people. It is still supported, but is only intended for debugging purposes to determine when a stub matches or doesn't.
requestsarray is only included if you use the
--mockcommand line parameter, and the
--nomockparameter no longer matters. This is the inverse of prior behavior and represents learning that the default use case for most people is to turn off recording requests by default (which represents a memory leak), as many people prefer long running
mbinstances set up with config files or used for performance testing.
Many thanks to the following kind folk for help with this release:
- Paul Phillips
- Quadir Kareemullah
npm install -g email@example.com --production
|Option||node.js required?||sudo required?||links||Description|
|Self-contained archives||No||No||Simply unpack and run
|source tarball||Yes||No||source tarball if you roll that way.|