code.test.base.executive

+latest+

accumulate

added in 3.0

(accumulate func id)

accumulates test results from various facts and files into a single data structure

announce-artifacts

added in 4.1

(announce-artifacts artifacts)

prints save notices for written artifacts

artifact-notices

added in 4.1

(artifact-notices {:keys [report-path run-path history-path]})

returns any save notices for written artifacts

eval-namespace

added in 3.0

(eval-namespace ns {:keys [run-id], :as params} lookup project)

evaluates the code within a specified namespace

history-file-path

added in 4.1

(history-file-path {:keys [run-path]} params)

returns the output path for saved run history

interim

added in 3.0

(interim facts)

summary function for accumulated results

load-namespace

added in 3.0

(load-namespace ns _ lookup project)

loads a given namespace for testing

load-report

added in 4.1

(load-report path)

loads a saved test report edn file

report->run-path

added in 4.1

(report->run-path report-path)

returns the repl helper path for a saved test report

report-edn

added in 4.1

(report-edn x)

coerces a report value into an EDN-safe shape

report-edn-safe?

added in 4.1

(report-edn-safe? x)

checks if a value can be written as EDN without coercion

report-failed-facts

added in 4.1

(report-failed-facts report)

groups failed/throw/timeout/errored report entries by namespace, returning a map of namespace -> set of refer symbols

report-file-path

added in 4.1

(report-file-path)

returns the output path for a saved test report

retrieve-line

added in 3.0

(retrieve-line key results)

returns the line of the test

run-current

added in 4.0

(run-current ns params lookup project)

runs the current namespace (which can be a non test namespace)

run-file-form

added in 4.1

(run-file-form selector params)

creates the repl helper form for rerunning tests

run-file-params

added in 4.1

(run-file-params params)

removes internal/default params from the saved repl run helper

run-file-path

added in 4.1

(run-file-path report-path params)

returns the output path for a saved repl run helper

run-namespace

added in 3.0

(run-namespace ns params lookup project)

loads and run the namespace

save-artifact

added in 4.1

(save-artifact _ path content)

saves a generated test artifact

save-report

added in 3.0

(save-report items)(save-report items selector params)

saves the report to .hara/runs

save-report-paths

added in 4.1

(save-report-paths items selector params)

writes report artifacts and returns the written paths

save-run-history

added in 4.1

(save-run-history items selector params artifacts)

appends the saved run metadata to csv history

summarise

added in 3.0

(summarise items)

creates a summary of given results

summarise-bulk

added in 3.0

(summarise-bulk _ items _)

creates a summary of all bulk results

test-namespace

added in 3.0

(test-namespace ns {:keys [run-id test], :as params} lookup project)

runs a loaded namespace

unload-namespace

added in 3.0

(unload-namespace ns _ lookup project)

unloads a given namespace for testing