This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-14
Channels
- # beginners (53)
- # boot (93)
- # cider (13)
- # cljs-dev (17)
- # cljsrn (20)
- # clojars (1)
- # clojure (349)
- # clojure-austin (1)
- # clojure-gamedev (5)
- # clojure-italy (1)
- # clojure-nl (16)
- # clojure-poland (1)
- # clojure-russia (26)
- # clojure-spec (57)
- # clojure-uk (6)
- # clojurebridge (5)
- # clojurescript (145)
- # code-reviews (2)
- # core-async (88)
- # cursive (1)
- # datomic (3)
- # defnpodcast (10)
- # events (7)
- # hoplon (20)
- # instaparse (1)
- # jobs-discuss (15)
- # keechma (26)
- # lein-figwheel (2)
- # leiningen (1)
- # liberator (11)
- # lumo (40)
- # off-topic (54)
- # om (32)
- # onyx (11)
- # pedestal (6)
- # perun (4)
- # planck (6)
- # re-frame (4)
- # reagent (12)
- # ring (3)
- # ring-swagger (10)
- # rum (1)
- # testing (4)
- # timbre (1)
- # unrepl (20)
- # untangled (111)
- # vim (1)
Hi. I am using the boot
with the test
task from adzerk.boot-test
. It prints Testing my.namespace.here
for every namespace I have in my project. Even if that namespace does not contain any tests. This is no fun, since one has to scroll up every thime a test fails. How to disable this output?
@witek That output comes from clojure.test
itself.
You may want to tell boot-test
to only load a subset of your namespaces. For example, if all your tests are in something.test.whatever
namespaces, you could provide -I test
to I-nclude only namespaces with test in their name.
@witek you could also try redefining clojure.test/report
method by adding this file into your test folder:
; Prettify test reports
(ns unit.reporter
(:require
[clojure.test :refer [report with-test-out]]))
; Change the report multimethod to ignore namespaces that don't contain any tests.
; taken from:
(defmethod report :begin-test-ns [m]
(with-test-out
(when (some #(:test (meta %)) (vals (ns-interns (:ns m))))
(println "\n-------====== Testing" (ns-name (:ns m)) "======-------"))))