Make trace available in tests Really useful with expect-focused to understand what's going wrong
2 files changed, 6 insertions(+), 1 deletion(-)
M project.clj → project.clj
@@ -6,6 +6,7 @@ :url "http://opensource.org/licenses/MIT"} :dependencies [[org.clojure/clojure "1.6.0"] [enlive "1.1.5"] [clojurewerkz/urly "1.0.0"]] - :profiles {:dev {:dependencies [[expectations "2.0.9"]]}} + :profiles {:dev {:dependencies [[expectations "2.0.9"] + [org.clojure/tools.trace "0.7.8"]]}} :plugins [[lein-expectations "0.0.7"]] :main microformats.parser)
M test/microformats/parser_expectations.clj → test/microformats/parser_expectations.clj
@@ -2,7 +2,11 @@ (ns microformats.parser-expectations (:require [expectations :refer :all] [microformats.parser :refer :all] [clojure.zip :as z] + [clojure.tools.trace :refer :all] [net.cgrand.enlive-html :refer [html-snippet]])) + +(untrace-ns 'microformats.parser) +;(trace-ns 'microformats.parser) (defn- snippets [html]