Automated testing helpers
Automated testing helpers
(defcleaner entities)
(defcleaner entities coll-name)
Defines a fixture function that removes all documents from a collection. If collection is not specified, a conventionally named var will be used. Supposed to be used with clojure.test/use-fixtures but may be useful on its own.
Examples:
(defcleaner events) ;; collection name will be taken from the events-collection var (defcleaner people "accounts") ;; collection name is given
Defines a fixture function that removes all documents from a collection. If collection is not specified, a conventionally named var will be used. Supposed to be used with clojure.test/use-fixtures but may be useful on its own. Examples: (defcleaner events) ;; collection name will be taken from the events-collection var (defcleaner people "accounts") ;; collection name is given
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close