CrossClj

1.10.0-alpha4 docs

SourceDocs



RECENT
    VARS
    print-diagnostics
    print-tap-diagnostic
    print-tap-fail
    print-tap-pass
    print-tap-plan
    tap-report
    with-tap-output

    « Index of all namespaces of this project

    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))

    — Stuart Sierra

    (print-diagnostics data)
    (print-tap-diagnostic data)
    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
    
    (print-tap-pass msg)
    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
    
    multimethodDynamic
    macro
    (with-tap-output & body)
    Execute body with modified test reporting functions that produce
    TAP output