#string #approval #compare #unit-testing #text #json-text #approve

approvals

A simple library allowing to compare strings in unit-tests. Currently in development stage and not usable.

7 releases

Uses old Rust 2015

0.0.7 Apr 11, 2016
0.0.6 Feb 25, 2016
0.0.5 Apr 3, 2015
0.0.3 Mar 28, 2015

#651 in Testing

MIT license

8KB
180 lines

approvals

Library that allows to write simple text related tests like producing JSON.

Usage: approvals::approve("actual string received from test");

TODO

* Make instructions to follow on failure
* Launch diff tool on failure
* configure folder where to keep approved files

Dependencies

~335KB