bestcase icon indicating copy to clipboard operation
bestcase copied to clipboard

Dashboard tests not showing up

Open charlespwd opened this issue 9 years ago • 0 comments

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)}}})

          ))))

image

charlespwd avatar Feb 23 '15 17:02 charlespwd