1.2.0 permalink Arrow_down_16x16

testing-vars-str

clojure.contrib.test-is

  • (testing-vars-str m)
Returns a string representation of the current test. Renders names
in *testing-vars* as a list, then the source file and line of
current assertion.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/test.clj:288 top

(defn testing-vars-str
  "Returns a string representation of the current test.  Renders names
  in *testing-vars* as a list, then the source file and line of
  current assertion."
  {:added "1.1"}
  [m]
  (let [{:keys [file line]} m]
    (str
     ;; Uncomment to include namespace in failure report:
     ;;(ns-name (:ns (meta (first *testing-vars*)))) "/ "
     (reverse (map #(:name (meta %)) *testing-vars*))
     " (" file ":" line ")")))
Vars in clojure.contrib.test-is/testing-vars-str: defn let map meta reverse str
Used in 0 other vars

Comments top

No comments for testing-vars-str. Log in to add a comment.