Skip to content

Releases: perrito666/expect

v0.0.10

15 Nov 12:36
14f7701
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.9...v0.0.10

v0.0.9

15 Nov 11:51
a7db194
Compare
Choose a tag to compare

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

15 Nov 11:37
3d4476d
Compare
Choose a tag to compare

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

15 Nov 11:15
1388800
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.6...v0.0.7

Add Custom config for snapshot

15 Nov 10:33
9cc634c
Compare
Choose a tag to compare

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

05 Oct 13:51
5e3a0b7
Compare
Choose a tag to compare
  • 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

01 Aug 09:54
71dbd1e
Compare
Choose a tag to compare

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

06 Jul 16:18
18ea632
Compare
Choose a tag to compare

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

19 Jun 15:00
dce7105
Compare
Choose a tag to compare

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

12 May 20:08
eb00dfe
Compare
Choose a tag to compare

Support for snapshots of JSON, Strings and HTTP Responses