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 builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |