Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A clojure.test compatible third-party testing library for Clojure.
Clojure Emacs Lisp
Tree: 48e54b6049

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/name/stadig
test/name/stadig/test
.dir-locals.el
.gitignore
README.org
epl-v10.html
project.clj

README.org

conjecture

A Clojure testing library forked from clojure.test.

Usage

Same as clojure.test, except you pull in name.stadig.conjecture.

For example, you would add the following dependency to your project.clj:

:dependencies [[name.stadig/conjecture "0.1.0"]]

Use name.stadig.conjecture in your tests:

(ns foo.bar.test
  (:use [name.stadig.conjecture]))

:

(deftest test-widget
  (is (= foo bar))
  ...)

Conjecture is compatible with any clojure.test based tests you may have. You simply swap name.stadig.conjecture in for clojure.test.

You can add the lein-conjecture plugin to your project.clj, if that’s your style:

:plugins [[name.stadig/lein-conjecture "0.1.0"]]

With this plugin you can run your tests with lein conjecture, or if your muscle memory is too overwhelming, you can add an alias to your project.clj:

:aliases {"test" "conjecture"}

Now you can run your tests with lein test.

You can see examples of all of this by looking at the project.clj for this project.

Known Issues

  • Any tools that depend directly on clojure.test will not be compatible, since the namespace is different for conjecture (for example, clojure-mode).

License

Copyright © Rich Hickey and Paul Stadig. All rights reserved.

:

The use and distribution terms for this software are covered by the Eclipse
Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which
can be found in the file epl-v10.html at the root of this distribution.

:

By using this software in any fashion, you are agreeing to be bound by the
terms of this license.

:

You must not remove this notice, or any other, from this software.
Something went wrong with that request. Please try again.