VIZ TEST HARNESS
Local testing without Splunk
| # | |
|---|---|
Use the sun/moon icon to toggle between light and dark mode. This changes both the harness UI and the theme reported to the visualization via getCurrentTheme(), so your viz renders in the correct mode.
Set exact dimensions with the width × height inputs, or click Fit to fill the available space. The visualization receives a reflow() call on resize.
These controls inject values into the Splunk-format data passed to the viz. Slider values update in real-time. Fields starting with _ are control fields (e.g., row count) that affect data generation but aren't data columns.
These mirror the viz's formatter.html settings. They map to config[ns + 'settingName'] in the viz JS. Defaults must match the JS fallback values.
harness.json alongside your viz's formatter.htmlharness-manifest.jsonNo changes to this HTML file needed.
this.drilldown() is a no-op in the mockeval() — check the console for errorsSee TEST-HARNESS.md for full documentation including harness.json schema, data modes, and troubleshooting.