CrossClj

0.4.0 docs

SourceDocs



RECENT
    VARS
    auto
    bat-test
    once
    profile
    quoted-namespace
    report-namespaces
    run-tests
    used-namespaces

    « Index of all namespaces of this project

    Private
    (auto project)
    Run tests, then watch for changes and re-run until interrupted.
    
    (bat-test project & args)
    Run clojure.test tests.
    
    Changed namespaces are reloaded using clojure.tools.namespace.
    Only tests in changed or affected namespaces are run.
    
    Reporter can be either:
    
    - vector     List of reporters to run, items can be other allowed values
    - map        Map with property :type which can be one of the following options
                 and optional :output-to property which will redirect the output
                 to a file.
    - keyword    Shorthand to use the built-in eftest reporters: :pretty, :progress, :junit
    - symbol     Symbol pointing to any reporter fn
    
    Default reporter is :progress.
    
    Options should be provided using :bat-test key in project map.
    
    Available options:
    :test-matcher    Regex used to select test namespaces
    :parallel?       Run tests parallel (default off)
    :report          Reporting function
    :filter          Function to filter the test vars
    :on-start        Function to be called before running tests (after reloading namespaces)
    :on-end          Function to be called after running tests
    :cloverage-opts  Cloverage options
    :notify-command  String or vector describing a command to run after tests
    
    Also supports Lein test selectors, check `lein test help` for more information.
    
    Arguments:
    - once, auto, cloverage, help
    - test selectors
    Private
    (once project)
    Run tests once
    
    (quoted-namespace key s)
    (report-namespaces report)
    Private
    (run-tests project opts watch?)
    (used-namespaces {:keys [report on-start on-end filter]})