NOTE: Since Clojars introduced a Verified Group Names policy, no new libraries could be pushed to the
expectations
group, anddoo
filters out JAR artifacts that beginclojure-
for self-hosted ClojureScript environments (i.e.,planck
), so continuing to useclojure-test
for the artifact name is not viable. Accordingly, the 2.x versions of this library are published ascom.github.seancorfield/expectations
.
Only accretive/fixative changes will be made from now on.
2.0.160 -- 2022-03-26
expect
(to suppress legacy behavior in more cases).build-clj
to v0.8.0.2.0.157 -- 2022-01-25
expect
.2.0.156 -- 2022-01-19
2.0.143 -- 2021-12-01
in
-set expectations.2.0.137 -- 2021-11-07
clj-kondo.exports
(this is just a first pass; the :lint-as
mappings will probably be replaced by hooks in the future).=?
(as well as the compile-time support already in expect
).build-clj
to v0.5.0.build.clj
/tools.build
for CI/deploy.2.0.0-alpha2 -- 2021-06-09
2.0.0-alpha1 -- 2021-06-05
(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.clojure.test
, for convenience in dev/test so users don't need to require clojure.test
as well.cljs.test
's version of use-fixtures
: accepts functions or hash maps (containing :before
and/or :after
keys with 0-arity functions).in
, from-each
, more-of
, more->
, more
are really only syntactic constructs inside expect
).planck
-- see https://github.com/clojure-expectations/clojure-test/pull/16 for details (@kkinear).These versions required users to also require clojure.test
and were not as
directly comparable to clojure.test
behaviors.
1.2.1 -- 2019-12-09
1.2.0 -- 2019-12-09
in
; allow it to be combined with more
etc. #11side-effects
.expect
. #9more->
equivalent to thrown-with-msg?
. #51.1.2 -- 2019-12-07
between
and between'
for inclusive and exclusive range checking.in
with a hash map to correctly detect failing cases.:require
.. :refer
in README to list all public symbols. #4^:no-doc
metadata for cljdoc.org.1.1.1 -- 2019-01-14
=?
extension to is
) will produce "humane" output for failures, showing differences. #11.1.0 -- 2019-01-08
1.0.1 -- 2019-01-02
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close