Liking cljdoc? Tell your friends :D

lambdaisland.makina.test

Provide a system/app during testing

Provide a system/app during testing

raw docstring

*app*clj

source

componentclj

(component k)

Get a single component value

Get a single component value
sourceraw docstring

init-appclj

(init-app opts)
source

make-fixture-fnclj

(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 {...}}))
```
sourceraw docstring

start!clj

(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
sourceraw docstring

with-appcljmacro

(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]]
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close