Provide a system/app during testing
Provide a system/app during testing
(component k)Get a single component value
Get a single component value
(make-fixture-fn opts)Returns a function that can be used with [[clojure.test/use-fixture]]
The function takes a collection of keys/components to start (empty to start
all keys). opts are as per [[lambdaisland.makina.application/create]]
(def wrap-system (make-fixture-fn {:prefix "my-app"}))
(use-fixture :once (wrap-system [:http/handler]))
(use-fixture :once (wrap-system {:keys [:http/handler] :handlers {...}}))
Returns a function that can be used with [[clojure.test/use-fixture]]
The function takes a collection of keys/components to start (empty to start
all keys). `opts` are as per [[lambdaisland.makina.application/create]]
```
(def wrap-system (make-fixture-fn {:prefix "my-app"}))
(use-fixture :once (wrap-system [:http/handler]))
(use-fixture :once (wrap-system {:keys [:http/handler] :handlers {...}}))
```
(start! opts)(start! opts ks)Starts an app/system and binds *app* permanently, meant for REPL use
Starts an app/system and binds `*app*` permanently, meant for REPL use
(with-app opts & body)Start a system, bind to *app*, evaluate body, tear the system down again
opts - see [[lambdaisland.makina.application/create]]Start a system, bind to `*app*`, evaluate `body`, tear the system down again - `opts` - see [[lambdaisland.makina.application/create]]
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 |