Liking cljdoc? Tell your friends :D

hydrox.analyse.test


analyse-test-fileclj

(analyse-test-file file opts)

analyses a test file for docstring forms (-> (analyse-test-file "example/test/example/core_test.clj" {}) (update-in '[example.core foo :docs] common/join-nodes)) => '{example.core {foo {:docs "1\n => 1", :meta {:added "0.1"}}}}

analyses a test file for docstring forms
(-> (analyse-test-file "example/test/example/core_test.clj" {})
    (update-in '[example.core foo :docs] common/join-nodes))
=> '{example.core {foo {:docs "1\n  => 1", :meta {:added "0.1"}}}}
sourceraw docstring

find-frameworksclj

(find-frameworks ns-form)

find test frameworks given a namespace form (find-frameworks '(ns ... (:use midje.sweet))) => #{:midje}

(find-frameworks '(ns ... (:use clojure.test))) => #{:clojure}

find test frameworks given a namespace form
(find-frameworks '(ns ...
                    (:use midje.sweet)))
=> #{:midje}

(find-frameworks '(ns ...
                    (:use clojure.test)))
=> #{:clojure}
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close