       (when error (doall (map (partial report-error name) error))))))
 
 (defn report-ns [ns results]
-  (println (ansi/style (str"\ncake test " ns) :cyan :underline))
+  (print (ansi/style (apply str (repeat 40 "-")) :white))
+  (println (ansi/style (str"\ncake test " ns) :cyan))
   (doseq [test-result (doall (:tests results))]
     (report-test ns test-result))
-  (let [{:keys [fail-count pass-count error-count assertion-count test-count]}
+  (let [{:keys [fail-count pass-count error-count assertion-count test-count] :as aggregate}
         (reduce (fn [acc [name {:keys [assertions]}]]
                   (let [acc (update-in acc [:test-count] inc)]
                     (let [grouped (group-by :type assertions)

                         (if (= 0 (+ fail-count
                                     error-count))
                           :green
                           :red)))))

(defn run-project-tests [& opts]
  (with-test-classloader
    (bake-ns (:use bake.test clojure.test
                   [clojure.string :only [join]]
                   [bake.core :only [with-context in-project-classloader?]])
             (doseq [[ns tests] (bake-invoke get-test-vars
                                             (flatten (for [test-path (:test-path *project*)]
                                                        (find-namespaces-in-dir (java.io.File. test-path))))
                                             (merge (test-opts) (apply hash-map opts)))]
               (report-ns ns (bake-invoke run-ns-tests ns tests))))))

(deftask test #{compile-java}
  "Run project tests."

                          (update-in [:pass-count] + pass-count)
                          (update-in [:error-count] + error-count)
                          (update-in [:assertion-count] + fail-count pass-count error-count)))))
                {:ns ns, :test-count 0, :assertion-count 0, :pass-count 0, :fail-count 0, :error-count 0}
                (:tests results))]
    (println (format "\nRan %s tests containing %s assertions."
                     test-count
