Export results #

Litmus has two CLI surfaces that take a run and produce a file:

  • litmus show <run_id> -f <fmt> — generates a report (HTML for browsers, PDF for distribution, JSON / CSV for downstream tools). Driven by report templates.
  • litmus export <id> -f <fmt> — writes a run or session out in a test-and-measurement interchange format: CSV, JSON, STDF, HDF5, TDMS, MDF4.

Pick the command by what the receiver wants. A QA engineer wants PDF reports → litmus show -f pdf. A semiconductor vendor wants STDF → litmus export -f stdf.

Prerequisites #

  • At least one completed run on disk
  • A run ID or session ID (prefix match works for both — get one from litmus runs or the operator UI's Results list)

Reports — litmus show -f #

litmus show <run_id>              # text summary to the terminal
litmus show <run_id> -f html      # one HTML file
litmus show <run_id> -f pdf -o reports/   # PDF into reports/
litmus show <run_id> -f json      # one JSON file with the run's structured data
litmus show <run_id> -f csv       # tabular CSV (one row per measurement)

HTML and PDF use a report template (default is default; switch with -t <name>). JSON and CSV have a fixed layout, so -t doesn't apply. Output path defaults to the current directory; override with -o.

PDF output needs an extra: pip install 'litmus-test[pdf]'.

FormatBest for
htmlOpen in a browser, share via screenshot, embed in confluence
pdfArchive or attach to a NCR / bug report
jsonProgrammatic consumption when you want structured run + step + measurement data
csvSpreadsheet analysis when one row per measurement is what you want

Reports include the run summary, steps, measurements, and (when captured) the environment snapshot.

Interchange exports — litmus export -f #

litmus export <id> -f csv                 # default output dir: exports/csv/
litmus export <id> -f json -o /tmp/out/   # explicit output dir
litmus export <id> -f stdf                # STDF v4 for semiconductor test floors
litmus export <id> -f hdf5                # HDF5 (scientific computing)
litmus export <id> -f tdms                # NI TDMS (LabVIEW ecosystem)
litmus export <id> -f mdf4                # ASAM MDF4 (automotive measurement data)

<id> accepts a run id OR a session id — the CLI auto-detects whether you gave a run id or a session id. Output directory defaults to exports/<fmt>/ when -o isn't given.

FormatFormat details
csvFlat CSV — one row per measurement
jsonStructured JSON mirroring the event stream
stdfStandard Test Data Format (v4) — semiconductor test floors / Spotfire / Examinator
hdf5Hierarchical Data Format — scientific computing
tdmsNI TDMS — LabVIEW / DIAdem
mdf4ASAM MDF4 — automotive measurement

Discoverability — what's installed #

litmus export <run_id> -f bogus
# No subscriber registered for format 'bogus'.
# Available: csv, hdf5, json, mdf4, stdf, tdms

Asking for an unknown format prints the list of installed formats. The format set ships with Litmus; there is no plugin surface to add your own today.

Common tasks #

  • Daily PDF reports for the production line — wrap litmus show $RUN -f pdf -o daily-reports/ in your build / shift-end script.
  • Feed runs into a semi vendor's STDF analyzerlitmus export $RUN -f stdf -o stdf-out/, ship the file.
  • Build a custom downstream tool that reads CSVlitmus export -f csv to a known path, your tool picks it up.
  • Bulk-export an entire session — pass the session ID instead of a run ID; the CLI replays every run in the session.

See also #

  • Lakehouse import — when the receiver wants parquet rows directly, skip export entirely
  • Grafana — when the receiver wants live dashboards instead of files
  • litmus show — CLI reference for the report path
  • litmus export — CLI reference for the interchange path
  • Data stores — where the parquet and event data live on disk