Skip to content

Releases: beme/abide

Bug Fixes

23 Jul 11:54
635a098
Compare
Choose a tag to compare

This release contains bug fixes.

Contributors

Bug Fixes

29 Sep 16:12
122a1e1
Compare
Choose a tag to compare

This release updates the snapshot file permission to 644 (#48).

Contributors

Bug Fixes

23 Aug 17:22
Compare
Choose a tag to compare

This release fixes a bug where assertion panics if no config is provided (#46).

Contributors

Support for HTTP Headers in config defaults

22 Aug 01:57
Compare
Choose a tag to compare

This release applies config.defaults to HTTP headers.

Contributors

Assert HTTP Requests

25 Jul 20:09
Compare
Choose a tag to compare

This release enables the user to run assertions against HTTP Requests.

Methods

func AssertHTTPRequestOut(t *testing.T, id string, r *http.Request)

Docs

func AssertHTTPRequest(t *testing.T, id string, r *http.Request)

Docs

Contributors

Set Custom Snapshot Directory

18 May 04:27
Compare
Choose a tag to compare

This release enables the user to set a custom path for the snapshot directory.

Usability

#39 - The user can set an alternate snapshot directory, which continues to default to __snapshots__.

func init() {
  abide.SnapshotDir = "testdata"
}

Miscellaneous

TravisCI updated to check Go v1.8.x-1.10.x and tip, as well as run gofmt, golint, and go vet.

Contributors

Bug Fixes

27 Mar 02:46
de1ebf8
Compare
Choose a tag to compare

This release resolves issue #34

Bugs

  • FIX: Using json.NewEncoder to write to http.ResponseWriter caused error when executing assertion.

Improved Snapshot Feedback

14 Mar 22:26
d831b87
Compare
Choose a tag to compare

This release includes the snapshot id in the test output as appropriate to improve usability.

Usability

#32 - Feedback in the console now includes the snapshot identifier for extra clarity when a snapshot is first created or when output does not match.

## Existing snapshot does not match results...
## snapshot-foobar

diff

Miscellaneous

Better support for various declarations of the JSON Content-Type.

Contributors

AssertReader and Improved Docs

21 Oct 21:09
Compare
Choose a tag to compare

This release adds a new method for testing io.Reader, improves documentation, and resolves a usability issue.

Methods

AssertReader(t *testing.T, id string, r io.Reader)

In addition to testing http.Response and Assertable, abide can now directly test io.Reader.

Documentation

Godocs have been improved upon and examples for most methods have been added.

Usability

#26 - When a snapshot is first "identified," the output will be included in tests logs, and the test will intentionally fail. This is by design, and is meant to provide the developer an opportunity to confirm the output is correct before saving. When it is correct, it can be saved (in the same way it is updated) via $ go test -- -u.

Initial Release

25 Sep 18:58
Compare
Choose a tag to compare

Initial Release