Releases: perrito666/expect
Releases · perrito666/expect
v0.0.10
What's Changed
- improve pretty dumping of requests by @perrito666 in #10
Full Changelog: v0.0.9...v0.0.10
v0.0.9
What's Changed
- fix wrong comparison by @perrito666 in #9
- this error was introduced as part of replacers for subtypes in previous tag
Full Changelog: v0.0.8...v0.0.9
Add replacers to subtypes
What's Changed
- Add replacer handling for subtypes by @perrito666 in #8
- Pass replacer to composite comparables
Full Changelog: v0.0.7...v0.0.8
Better handle application/json Responses
Add Custom config for snapshot
What's Changed
- Horacio/allow per test config by @perrito666 in #6
- Add the option to provide a config for snapshot
- Add a way to instantiate a json comparable from bytes
- Update broken tests
- Do not panic if input is empty
Full Changelog: v0.0.5...v0.0.6
Avoid noop snapshot updates
- fix small typo by @Ferada in #4
- Avoid useless snapshot updates by @perrito666 in #5
- Do not snapshot if nothing changed in the body, there was a partial implementation but current one does a full cmp test before doing the snapshot (cmp uses the right comparable to be more accurate)
- Also avoid failing when the file does not exist and we are running a comparison for the first time.
- Passing by, fixed string comparison for two equal strings.
Full Changelog: v0.0.4...v0.0.5
Improve string diff
String diff is no longer unified diff but in exchange it shows useful difference, since nobody will use this as a way to create patches it is better if we instead create readable diffs.
Update `expectations.json` lookup
Try and find the expectations.json
file in the same place where the test lives.
Improve documentation to explain how to better make use of configuration.
Fix bugs in Cleanup
Full Changelog: v0.0.1...v0.0.2
Fix #1 : Cleanup removes all snapshots
- Solve the issue of cleanup not identifying which snapshots were requested in a given run due to files have an extension.
- Prevent cleanup from running cleanup if no snapshots at all ran or if -run was used, to avoid cleaning up when running only one test.
- Do a best effort attempt at not replacing a snapshot when the only change is the OS.
Initial Release
Support for snapshots of JSON, Strings and HTTP Responses