Skip to content

AssertReader and Improved Docs

Compare
Choose a tag to compare
@sjkaliski sjkaliski released this 21 Oct 21:09
· 37 commits to master since this release

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.