Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard tests not showing up #5

Open
charlespwd opened this issue Feb 23, 2015 · 0 comments
Open

Dashboard tests not showing up #5

charlespwd opened this issue Feb 23, 2015 · 0 comments
Labels

Comments

@charlespwd
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant