Last active
August 7, 2021 02:06
-
-
Save nanonanomachine/9985a48b8c9e045a43add589b17c2fe7 to your computer and use it in GitHub Desktop.
lein repl tips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; ************** | |
;; Kaocha | |
;; ************** | |
;; Run kaocha test in Repl | |
(require '[kaocha.repl :as k]) | |
;; Run whole test | |
(k/run :unit) | |
;; Or we can run some namespace | |
(k/run 'kaocha.random-test) | |
;; Watch | |
(require '[kaocha.watch :as kw]) | |
(kw/run (k/config)) | |
;; Surpress kaocha too noisy stacktrace | |
;; https://github.com/lambdaisland/kaocha/issues/59 | |
(alter-var-root | |
#'kaocha.stacktrace/*stacktrace-filters* | |
(constantly ["java." "clojure." "kaocha." "orchestra." "nrepl."])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
alias lr="(echo \"(require '[kaocha.repl :as k])(require '[kaocha.watch :as kw])(alter-var-root #'kaocha.stacktrace/*stacktrace-filters* (constantly [\\\"java.\\\" \\\"clojure.\\\" \\\"kaocha.\\\" \\\"orchestra.\\\" \\\"nrepl.\\\"]))(kw/run (k/config))\"; cat <&0) | lein repl"