Back

*initial-report-counters* (clj)

(source)

variable

Examples

sritchie/midje-cascalog
(deftask midje
  "Run midje and clojure.test tests"
  (bake (:use [bake.core :only [with-context]])
	(:require [clojure test string])
	[namespaces (concat (find-namespaces-in-dir (java.io.File. "test"))
			    (find-namespaces-in-dir (java.io.File. "src")))]
	(with-context :test
       	  ;; This turns off "Testing ...." lines, which I hate, especially
       	  ;; when there's no failure output.
       	  (defmethod clojure.test/report :begin-test-ns [m])

       	  (alter-var-root (var clojure.test/*report-counters*)
       			  (fn [_] (ref clojure.test/*initial-report-counters*)))
       	  (doseq [n namespaces] (require n :reload))
ldnclj/Coloured-Balls
(deftask midje
  "Run midje and clojure.test tests"
  (bake (:use [bake.core :only [with-context]])
	(:require [clojure test string])
	[namespaces (concat (find-namespaces-in-dir (java.io.File. "test"))
			    (find-namespaces-in-dir (java.io.File. "src")))]
	(with-context :test
       	  ;; This turns off "Testing ...." lines, which I hate, especially
       	  ;; when there's no failure output.
       	  (defmethod clojure.test/report :begin-test-ns [m])

       	  (alter-var-root (var clojure.test/*report-counters*)
       			  (fn [_] (ref clojure.test/*initial-report-counters*)))
       	  (doseq [n namespaces] (require n :reload))