function | since v0.0-2496 | ![]() | Edit |
(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.
(defn testing-vars-str
[m]
(let [{:keys [file line column]} m]
(str
(reverse (map #(:name (meta %)) (:testing-vars (get-current-env))))
" (" file ":" line (when column (str ":" column)) ")")))