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))
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))
(print-tap-diagnostic data)
Prints a TAP diagnostic line. data is a (possibly multi-line) string.
Prints a TAP diagnostic line. data is a (possibly multi-line) string.
(print-tap-fail msg)
Prints a TAP 'not ok' line. msg is a string, with no line breaks
Prints a TAP 'not ok' line. msg is a string, with no line breaks
(print-tap-pass msg)
Prints a TAP 'ok' line. msg is a string, with no line breaks
Prints a TAP 'ok' line. msg is a string, with no line breaks
(print-tap-plan n)
Prints a TAP plan line like '1..n'. n is the number of tests
Prints a TAP plan line like '1..n'. n is the number of tests
(with-tap-output & body)
Execute body with modified test reporting functions that produce TAP output
Execute body with modified test reporting functions that produce TAP output
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close