ClojureDocs

Namespaces

clojure.test.tap

clojure.test extensions for the Test Anything Protocol (TAP)

  TAP is a simple text-based syntax for reporting test results.  TAP
  was originally developed for Perl, and now has implementations in
  several languages.  For more information on TAP, see
  http://testanything.org/ and
  http://search.cpan.org/~petdance/TAP-1.0.0/TAP.pm

  To use this library, wrap any calls to
  clojure.test/run-tests in the with-tap-output macro,
  like this:

    (use 'clojure.test)
    (use 'clojure.test.tap)

    (with-tap-output
     (run-tests 'my.cool.library))
Vars in clojure.test.tap

p

print-tap-diagnostic
Prints a TAP diagnostic line. data is a (possibly multi-line) string.
print-tap-fail
Prints a TAP 'not ok' line. msg is a string, with no line breaks
print-tap-pass
Prints a TAP 'ok' line. msg is a string, with no line breaks
print-tap-plan
Prints a TAP plan line like '1..n'. n is the number of tests

t

w

with-tap-output
Execute body with modified test reporting functions that produce TAP output