This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-20
Channels
- # announcements (1)
- # bangalore-clj (27)
- # beginners (82)
- # boot (4)
- # chestnut (1)
- # cider (22)
- # cljs-dev (26)
- # cljsrn (4)
- # clojure (118)
- # clojure-dev (18)
- # clojure-italy (2)
- # clojure-losangeles (1)
- # clojure-nl (2)
- # clojure-russia (1)
- # clojure-spec (15)
- # clojure-uk (125)
- # clojurescript (61)
- # core-async (74)
- # cursive (2)
- # datomic (41)
- # duct (6)
- # editors (7)
- # emacs (3)
- # events (1)
- # figwheel-main (3)
- # fulcro (111)
- # hoplon (11)
- # jobs-discuss (97)
- # lein-figwheel (99)
- # off-topic (34)
- # onyx (4)
- # parinfer (9)
- # pedestal (4)
- # precept (2)
- # re-frame (5)
- # reagent (2)
- # reitit (4)
- # ring-swagger (11)
- # shadow-cljs (104)
- # spacemacs (4)
- # tools-deps (19)
- # vim (8)
- # yada (15)
Hello. I would like to activate asserts and spec-asserts when running tests. Is there a way to put this activations into my build.boot instead of my source files? Or how to activate these assertions during tests but not in production? Thank you.
I am pretty sure you can run most code in your build.boot file, but I haven't used boot for a while. Do you know what test runner you are using? I would activate those asserts before you run the tests. I would put them anywhere you can inject code before test code is run, which varies based on how you run the tests. I am using circleci.test (https://github.com/circleci/circleci.test) with Leiningen to run tests and circleci.test has a global fixture that can run code before and after any tests are run. In my code I would probably activate the asserts in that fixture.