Liking cljdoc? Tell your friends :D

clj-concordion.core


deffixturecljmacro

(deffixture name methods)

Create a fixture object for a Concordion specification, exposing the functions used in the spec., and a clojure.test test to execute the specification.

Params:

  • name - a package-prefixed name of the generated fixture class, optionally ending in Fixture (symbol or string) The name is also used to find the specification .md/.html file.
  • methods - a vector of 1+ functions that will be exposed as methods on the fixture object The function parameters and return value may be type-hinted as ^int or ^bool, the default being String (the only 3 types supported by Concordion).

Example: Given the spec math/Addition.md with 'yields 4' Implement (defn ^int add [^int n1, ^int n2] (+ n1 n2) and expose it to the spec.: (deffixture math.AdditionFixture [add])

Create a fixture object for a Concordion specification, exposing the functions used in the spec.,
and a clojure.test test to execute the specification.

Params:
  - name - a package-prefixed name of the generated fixture class, optionally ending in Fixture (symbol or string)
           The name is also used to find the specification .md/.html file.
  - methods - a vector of 1+ functions that will be exposed as methods on the fixture object
            The function parameters and return value may be type-hinted as ^int or ^bool,
            the default being String (the only 3 types supported by Concordion).

Example:
  Given the spec math/Addition.md with 'yields [4](- "?=add(#n1, #n2)")'
  Implement `(defn ^int add [^int n1, ^int n2] (+ n1 n2)` and expose it to the spec.:
  `(deffixture math.AdditionFixture [add])`
sourceraw docstring

run-fixtureclj

(run-fixture fixture)

Test a Concordion specification using the given fixture object (which provides the functions used in the specification .md). The specification file is found on the classpath based on the name of the fixture's class.

Test a Concordion specification using the given fixture object
(which provides the functions used in the specification .md).
The specification file is found on the classpath based on the name
of the fixture's class.
sourceraw docstring

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

× close