run-tests

circumspec.runner

  • (run-tests & tests)
Runs all tests for current configuration, or as
passed in via tests.

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 circumspec/runner.clj:90 top

(defn run-tests
  "Runs all tests for current configuration, or as
   passed in via tests."
  [& tests]
  (let [tests (or (seq tests) (locator/tests))
        start (System/nanoTime)
        results (test-results tests)
        report (config/report-function)]
    ;; report first, tally later so reports print incrementally
    (report results)
    (raw/dump-results results)
    (let [tally (assoc (tally results) :nsec (- (System/nanoTime) start))]
      (report-tally tally)
      tally)))
Vars in circumspec.runner/run-tests: defn let
Used in 0 other vars

Comments top

No comments for run-tests. Log in to add a comment.