Liking cljdoc? Tell your friends :D

tupelo.test

Testing functions.

Testing functions.
raw docstring

check-iscljmacro

(check-is & body)
source

check-isntcljmacro

(check-isnt & body)
source

define-fixturecljmacro

(define-fixture mode interceptor-map)
source

define-fixture-implclj

(define-fixture-impl ctx mode interceptor-map)
source

deftestcljmacro

(deftest & items)

Like clojure.test/deftest, but doesn't require a test name. Usage:

(ns xyz.. (:use tupelo.test))

(dotest (is= 5 (+ 2 3)) ; contraction of (is (= ...)) (isnt false) ; contraction of (is (not ...)) (set= [1 2 3] [3 2 1]) ; set equality semantics (throws? (/ 1 0)))

Like clojure.test/deftest, but doesn't require a test name. Usage:

(ns xyz..
  (:use tupelo.test))

(dotest
  (is= 5 (+ 2 3))          ; contraction of (is (= ...))
  (isnt false)             ; contraction of (is (not ...))
  (set= [1 2 3] [3 2 1])   ; set equality semantics
  (throws? (/ 1 0)))
sourceraw docstring

deftest-focuscljmacro

(deftest-focus & items)

Like deftest, but invokes lein-test-refresh focus mode; i.e. applies metadata {:test-refresh/focus true}

Like `deftest`, but invokes lein-test-refresh focus mode; i.e. applies metadata {:test-refresh/focus true}
sourceraw docstring

dospeccljmacro

(dospec & body)
source

dotestcljmacro

(dotest & items)

Alias for tupelo.test/deftest

Alias for tupelo.test/deftest 
sourceraw docstring

dotest-focuscljmacro

(dotest-focus & items)

Alias for tupelo.test/deftest-focus

Alias for tupelo.test/deftest-focus 
sourceraw docstring

iscljmacro

(is & forms)

Equivalent to clojure.test/is.

Equivalent to clojure.test/is.
sourceraw docstring

is=cljmacro

(is= & forms)

Use (is= ...) instead of (is (= ...)) for clojure.test

Use (is= ...) instead of (is (= ...)) for clojure.test
sourceraw docstring

isntcljmacro

(isnt & forms)

Use (isnt ...) instead of (is (not ...)) for clojure.test

Use (isnt ...) instead of (is (not ...)) for clojure.test
sourceraw docstring

isnt=cljmacro

(isnt= & forms)

Use (isnt= ...) instead of (is (not= ...)) for clojure.test

Use (isnt= ...) instead of (is (not= ...)) for clojure.test
sourceraw docstring

nonblank=cljmacro

(nonblank= & forms)

Returns true if each input string is equal treating all whitespace as equivalent.

Returns true if each input string is equal treating all whitespace as equivalent.
sourceraw docstring

set=cljmacro

(set= & forms)

Converts each input collection to a set, then tests for equality.

Converts each input collection to a set, then tests for equality.
sourceraw docstring

testingcljmacro

(testing & forms)
source

throws?cljmacro

(throws? & forms)

Use (throws? ...) instead of (is (thrown? ...)) for clojure.test. Usage:

(throws? (/ 1 0)) ; catches any Throwable (throws? ArithmeticException (/ 1 0)) ; catches specified Throwable (or subclass)

Use (throws? ...) instead of (is (thrown? ...)) for clojure.test. Usage:

(throws? (/ 1 0))                      ; catches any Throwable
(throws? ArithmeticException (/ 1 0))  ; catches specified Throwable (or subclass) 
sourceraw docstring

throws?-implclj

(throws?-impl & forms)
source

use-fixturesclj

(use-fixtures & args)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close