diff options
author | Alan Pearce | 2014-10-12 00:47:57 +0100 |
---|---|---|
committer | Alan Pearce | 2014-10-12 00:47:57 +0100 |
commit | b12efc0d46294c8c6295971360b67de28127175a (patch) | |
tree | 5bd1df7e5fbe24f8dda019617891a005e96d5b06 | |
parent | 452f0e79d5451f90e9b86006391be409331e64d9 (diff) | |
download | microformats-b12efc0d46294c8c6295971360b67de28127175a.tar.lz microformats-b12efc0d46294c8c6295971360b67de28127175a.tar.zst microformats-b12efc0d46294c8c6295971360b67de28127175a.zip |
Make trace available in tests
Really useful with expect-focused to understand what's going wrong
-rw-r--r-- | project.clj | 3 | ||||
-rw-r--r-- | test/microformats/parser_expectations.clj | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/project.clj b/project.clj index 4223379..4cfd664 100644 --- a/project.clj +++ b/project.clj @@ -6,6 +6,7 @@ :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) diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj index e04887e..654241c 100644 --- a/test/microformats/parser_expectations.clj +++ b/test/microformats/parser_expectations.clj @@ -2,8 +2,12 @@ (: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] (map z/xml-zip (html-snippet html))) |