A minimalist's unit testing framework
Clojure Java Other
Latest commit c041568 Feb 23, 2017 @seancorfield seancorfield Add `functionally` predicate #88 and tests
Make it work with `from-each`; update readme/changelog; prep for 2.2.0-beta1.



Visit the expectations website for all of the expectation docs:


Running the tests:

lein do clean, test-success, test-clojure

This will run the (successful) expectations for Clojure and the (unsuccessful) clojure.test-compatible tests for Clojure (currently 83/83 and 12/21 tests/assertions respectively, the latter should show 16 failures and 4 errors).

You can also run the ClojureScript tests interactively:

cljs.user=> (require 'expectations.test)
cljs.user=> (expectations.test/-main)

This will run the (successful) expectations that are compatible with ClojureScript (currently 69/69).

You can run all expectations via:

lein do clean, expectations

This includes the deliberately failing expectations (used to visually confirm behavior for failing tests) and should run 128 assertions in total, of which 43 will fail and 2 will error.

Donate to Jay C Fields, the creator of Expectations

Donate Bitcoins<script src="https://www.coinbase.com/assets/button.js" type="text/javascript"></script>