Skip to main content

cljs.spec.test

-

A

  • abbrev-result

    Given a check result, returns an abbreviated version suitable for summary use.

C

  • check

    Run generative tests for spec conformance on vars named by sym-or-syms, a symbol or collection of symbols. If sym-or-sym...

  • check-fn

    Runs generative tests for fn f using spec and opts. See 'check' for options and return.

  • check-var

    Checks a var's specs using test.check. Optional args are passed through to test.check/quick-check: num-tests numb...

  • checkable-syms

    Given an opts map as per check, returns the set of syms that can be checked.

D

E

  • enumerate-namespace

    Given a symbol naming an ns, or a collection of such symbols, returns the set of all symbols naming vars in those nses.

G

I

  • instrument

    Instruments the vars named by sym-or-syms, a symbol or collection of symbols, or all instrumentable vars if sym-or-syms ...

  • instrumentable-syms

    Given an opts map as per instrument, returns the set of syms that can be instrumented.

R

  • run-all-tests

    Like clojure.test/run-all-tests, but runs test.check tests for all speced vars. Prints per-test results to *out*, and re...

  • run-tests

    Like run-all-tests, but scoped to specific namespaces, or to *ns* if no ns-sym are specified.

S

  • summarize-results

    Given a collection of check-results, e.g. from 'check', pretty prints the summary-result (default abbrev-result) of each...

U

  • unstrument

    Undoes instrument on the vars named by sym-or-syms, specified as in instrument. With no args, unstruments all instrument...

W