Reid Draper's simple-check[1] is a generative/property-based testing
library for Clojure that implements (and improves upon IMO) the
shrinking of failing test cases seen in e.g. quickcheck in the Haskell
and Erlang lands.
simple-check has totally changed how I do certain kinds of testing. From
the beginning, I've wanted to use it when testing ClojureScript
libraries and apps as well, since most of my ClojureScript code is
portable to Clojure, or made that way with cljx[2].
The result is double-check, a fork of simple-check that provides the
same API and generator semantics for Clojure and ClojureScript:
https://github.com/cemerick/double-check
double-check will fast-follow the development of simple-check, aiming to
provide nothing more than a portable API; there should never be anything
novel or interesting in double-check, except for the recasting of the
simple-check codebase into a portable form.
Naturally, double-check adds support/integration for
clojurescript.test[3] where simple-check supports/integrates clojure.test.
I've discovered (and reported and/or fixed) a number of issues in
ClojureScript itself solely by making simple-check's own tests portable,
and running them on ClojureScript. I suspect you'll have the same
experience with your own Clojure/ClojureScript projects once you apply
double-check to them.
Cheers,
- Chas
[1] https://github.com/reiddraper/simple-check
[2] https://github.com/lynaghk/cljx
[3] https://github.com/cemerick/clojurescript.test
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.