hexpm/ltest0.14.0ldoc

ltest-runner

Provide the legacy test-runner API and dispatch EUnit test groups.

--loaded-ltest-records--/0function

--loaded-ltest-records--/0

Return ok. This dummy function marks the end of the include so the REPL prints its name as the last function loaded.

all/0function

all/0

Run unit, integration, system, then the optional legacy Selenium path; return the first non-ok result after running each path.

first-non-ok/1function

first-non-ok/1

Return the first non-ok legacy group result, or ok on full success.

get-listener/0function

get-listener/0

Read the listener init argument, default to ltest-listener, and convert its first value to an atom.

get-options/1function

get-options/1

Return no_tty and report options for LISTENER with the legacy colored option; the listener defaults color to true when omitted.

get-options/2function

get-options/2

Return no_tty plus a report option containing LISTENER and OPTIONS; this helper does not validate either value.

get-report-options/2function

get-report-options/2

Return EUnit's report tuple for LISTENER and OPTIONS.

integration/0function

integration/0

Run integration tests with the legacy runner and preserve EUnit's result. This zero-argument form adds the outer suite headings around the group heading.

integration/1function

integration/1

Run integration tests with the legacy runner and preserve EUnit's result. The ignored compatibility argument leaves only the group heading.

run/1function

run/1

Dispatch a supported group or selenium atom; other input is treated as a BEAM path. Return the selected EUnit result.

run-beam/1function

run-beam/1

Read the module identity from the compiled BEAM and run it with the listener selected by get-listener/0; file and EUnit errors propagate.

run-beam/2function

run-beam/2

Resolve the BEAM module and run it through EUnit with LISTENER; the path must identify a readable compiled BEAM.

run-beams/2function

run-beams/2

Append .beam to BEAM basenames, then run them through EUnit with the listener selected by get-listener/0.

run-beams/3function

run-beams/3

Run the supplied test BEAM basenames through EUnit with LISTENER.

run-module/2function

run-module/2

Run one test module atom through EUnit with LISTENER and return its result.

run-modules/1function

run-modules/1

Run MODULES through EUnit with the listener selected by get-listener/0.

run-modules/2function

run-modules/2

Run one or more test modules through EUnit using LISTENER.

system/0function

system/0

Run system tests with the legacy runner and preserve EUnit's result. This zero-argument form adds the outer suite headings around the group heading.

system/1function

system/1

Run system tests with the legacy runner and preserve EUnit's result. The ignored compatibility argument leaves only the group heading.

unit/0function

unit/0

Run unit tests with the legacy runner and preserve EUnit's result. This zero-argument form adds the outer suite headings around the group heading.

unit/1function

unit/1

Run unit tests with the legacy runner and preserve EUnit's result. The ignored compatibility argument leaves only the group heading.