Skip to content

2.0.0 Alpha 1

Pre-release
Pre-release
Compare
Choose a tag to compare
@seancorfield seancorfield released this 05 Jun 17:44
· 112 commits to develop since this release

The 2.x stream now lives under com.github.seancorfield/expectations.

These are the important changes from the 1.2.1 version:

  • Make (defexpect foo) and (defexpect foo (bar)) match the behavior of deftest, without wrapping the body in (expect ,,,). This is potentially breaking insofar as (defexpect foo (produces-falsey)) would have been a failing test in 1.x but now silently just runs (produces-falsey) in the same way that (deftest foo (produces-falsey)) does.
  • Bring in several test-running functions from clojure.test, for convenience in dev/test so users don't need to require clojure.test as well.
  • Implement cljs.test's version of use-fixtures: accepts functions or hash maps (containing :before and/or :after keys with 0-arity functions).
  • Add various macro-like constructs back into the documentation to improve the documentation (in, from-each, more-of, more->, more are really only syntactic constructs inside expect).
  • Support ClojureScript via planck -- see #16 for details (@kkinear).