CrossClj

0.1.3 docs

SourceDocs



RECENT
    VARS
    is
    parse-args
    test

    « Index of all namespaces of this project

    macro
    (is [func & args] & [message])
    Private
    (parse-args args)
    macro
    (test & args)
    Defines a test case. Takes three optional arguments in order: a map
    of options, a string describing the test, and a vector of binding/value
    pairs. The remaining arguments will constitute the body of the test.
    
    The function done is defined in the scope of the test, and must be
    called when the test is done, or the test will never complete and
    eventually time out.
    
    Available options are:
    
        {:timeout <milliseconds>}
            defines the time a test has to complete before timing out
        {:only <platforms>}
            given a set of keywords, or just one keyword, will restrict
            the test to running on the given platforms. Possible keywords
            are :node and :browser.