Liking cljdoc? Tell your friends :D

hara.test.runner


accumulateclj

(accumulate func)

helper function for accumulating results over disparate facts and files

helper function for accumulating results over disparate facts and files
raw docstring

interimclj

(interim facts)

summary function for accumulated results

summary function for accumulated results
raw docstring

runclj

(run)
(run project)
(run settings project)

run tests for entire project

(run) ;; ---- Project (zcaudate/hara:124) ---- ;; documentation.hara-api ;; documentation.hara-class ;; documentation.hara-common ;; documentation.hara-component ;; .... ;; .... ;; hara.time.data.vector-test ;; ;; Summary (99) ;; Files 99 ;; Facts 669 ;; Checks 1151 ;; Passed 1150 ;; Thrown 0 ;; ;; Failed (1)

(run {:test-paths ["test/hara"] :include ["^time"] :print #{:print-facts}}) => {:files 8, :thrown 0, :facts 54, :checks 127, :passed 127, :failed 0} ;; Fact [time_test.clj:9] - hara.time/representation? ;; Info "checks if an object implements the representation protocol" ;; Passed 2 of 2

;; Fact [time_test.clj:16] - hara.time/duration? ;; Info "checks if an object implements the duration protocol" ;; Passed 2 of 2

;; ...

run tests for entire project
       
(run)
;;  ---- Project (zcaudate/hara:124) ----
;;  documentation.hara-api
;;  documentation.hara-class
;;  documentation.hara-common
;;  documentation.hara-component
;;   ....
;;   ....
;;  hara.time.data.vector-test
;;
;;  Summary (99)
;;    Files  99
;;    Facts  669
;;   Checks  1151
;;   Passed  1150
;;   Thrown  0
;;
;;   Failed  (1)

(run {:test-paths ["test/hara"]
      :include    ["^time"]
      :print      #{:print-facts}})
=> {:files 8, :thrown 0, :facts 54, :checks 127, :passed 127, :failed 0}
;;   Fact  [time_test.clj:9] - hara.time/representation?
;;   Info  "checks if an object implements the representation protocol"
;; Passed  2 of 2

;;   Fact  [time_test.clj:16] - hara.time/duration?
;;   Info  "checks if an object implements the duration protocol"
;; Passed  2 of 2

;; ...
raw docstring

run-namespaceclj

(run-namespace)
(run-namespace ns)
(run-namespace ns project)
(run-namespace ns settings project)

run tests for namespace

(run-namespace 'hara.class.checks-test) => {:files 1, :thrown 0, :facts 5, :checks 9, :passed 9, :failed 0}

;; ---- Namespace (hara.class.checks-test) ---- ;; ;; Summary (1) ;; Files 1 ;; Facts 5 ;; Checks 9 ;; Passed 9 ;; Thrown 0 ;; ;; Success (9)

run tests for namespace

(run-namespace 'hara.class.checks-test)
=> {:files 1, :thrown 0, :facts 5, :checks 9, :passed 9, :failed 0}

;; ---- Namespace (hara.class.checks-test) ----
;;
;; Summary (1)
;;   Files  1
;;   Facts  5
;;  Checks  9
;;  Passed  9
;;  Thrown  0
;;
;; Success (9)
raw docstring

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

× close