A minimalist's unit testing framework
Clojure Java Other
Latest commit 9dd5e1a Sep 19, 2017 @seancorfield seancorfield Partial solution for #93
Switches over to `clojure.test` tooling (with `defexpect`) but uses sequential numbers for tests instead of line numbers.



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 13/23 tests/assertions respectively, the latter should show 18 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 the "readme" tests:

lein test-readme

This generates test/clojure/readme.clj from examples.md and runs those generated tests. You should see 4 tests, with one failure and no errors.

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 132 assertions in total, of which 44 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>