Next: , Up: Running Tests   [Index]


K.5.2.1 Running Tests Interactively

M-x ert :SELECTOR

ERT will pup up a new buffer, called the ERT results buffer, showing the results of the tests run.

  1. ERT Selectors
    nil

    select no tests

    t

    run all tests

    :new

    select all tests not yet run

    :failed’ ‘:passed

    select tests according to their most recent result

    :expected’ ‘:unexpected

    select tests according to their most recent result

    "regexp"

    a string reg exp that selects all tests with matching names

    a test (an object of ert=test data type)

    selects that test

    a symbol

    selects the test that the symbol names

    (member TESTS...)

    selects the elements of tests, a list of tests or symbols naming tests

    (eql TEST)

    selects TEST, a test or a symbol naming a test

    (and SELECTORS...)

    selects the tests that match all SELECTORS

    (or SELECTORS...)

    selects the tests that match any of the SELECTORS

    (not SELECTOR)

    selects all tests that do not match SELECTOR

    (tag TAG)

    selects all tests that have TAG on their tags list

    (satisfies PREDICATE)

    selects all tests that satisfy PREDICATE, a function that takes a test as argument and returns non-nill if it is selected