Skip to content

Releases: clojure-expectations/clojure-test

2.0.0 Alpha 1

05 Jun 17:44
Compare
Choose a tag to compare
2.0.0 Alpha 1 Pre-release
Pre-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).

Release 1.2.1

09 Dec 09:40
Compare
Choose a tag to compare

Identical to release 1.2.0 but with a fix for the generated documentation index on cljdoc.org.

Release 1.2.0

09 Dec 09:29
Compare
Choose a tag to compare

Enhancements:

  • Improve failure reporting for in; allow it to be combined with more etc. #11
  • Add support for mocking return values in side-effects.
  • Add support for optional message argument in expect. #9

Documentation:

  • Added article-style documentation for cljdoc.org. #6, #7, #8, #10
  • Add example of more-> equivalent to thrown-with-msg?. #5

Release 1.1.2

08 Dec 01:27
Compare
Choose a tag to compare

Bug Fix:

  • Fix in with a hash map to correctly detect failing cases.

Enhancements:

  • Adds between and between' for inclusive and exclusive range checking.

Documentation:

  • Clean up :require .. :refer in README to list all public symbols. #4
  • Fixes links in README. PR #3 (@marekjeszka)
  • Add/improve docstrings. Add ^:no-doc metadata for when cljdoc.org supports it.

Maintenance:

  • Add a first round of tests (finally!). Verified support for Clojure 1.8 (without Spec expectations). Verified full support for Clojure 1.9 and 1.10.1.

Release 1.1.1

14 Jan 22:20
Compare
Choose a tag to compare

Release 1.1.0 (broken)

09 Jan 05:55
Compare
Choose a tag to compare

(broken implementation of spec expectations)

1.0.1

02 Jan 22:22
Compare
Choose a tag to compare

Initial release spun off from main Expectations library!