From 38bd84a6e5aeb513cdad5342540ad1710c647fdd Mon Sep 17 00:00:00 2001 From: Brian Marick Date: Mon, 10 Jan 2011 11:30:51 -0600 Subject: [PATCH] Avoid the "gilardi scenario" http://technomancy.us/143 --- examples/cake-midje/tasks.clj | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/cake-midje/tasks.clj b/examples/cake-midje/tasks.clj index 20a2befa7..53685f26c 100644 --- a/examples/cake-midje/tasks.clj +++ b/examples/cake-midje/tasks.clj @@ -6,12 +6,10 @@ (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 - (require 'clojure.test) - (require 'clojure.string) - ;; This turns off "Testing ...." lines, which I hate, especially ;; when there's no failure output. (defmethod clojure.test/report :begin-test-ns [m]) @@ -48,8 +46,6 @@ (when (> (+ (:fail clojure-test-result) (:error clojure-test-result)) 0) - ;; For some reason, empty lines are swallowed, so I use >>> to - ;; demarcate sections. (println ">>> Output from clojure.test tests:") (dorun (map println (drop-last 2 clojure-test-output))))