bestcase
bestcase copied to clipboard
Dashboard tests not showing up
The tests are not showing up correctly on the dashboard route. Broken bsns.
Basic setup:
(dashboard-routes "/bestcase")
;; ...
(defn wrap-app [app]
(do
;; We'd like to have the ab test results persist somewhere.
(bc/set-config! {:store (bcr/create-redis-store (env :redis-conn))})
(let [store (cookie/cookie-store {:key (env :session-secret)})]
(-> app
((if (env :dev)
selmer.middleware/wrap-error-page
identity))
((if (env :production)
wrap-error-page
trace/wrap-stacktrace))
;; ab testing identity middleware, we need to persist the identity
((identity-middleware-wrapper
default-identity-fn
{:easy-testing (env :dev)
:simple-no-bots true}))
(site {:session {:store store
:cookie-attrs {:max-age (* 60 60 24 30)}}})
))))