Skip to Content
Soundor Skills

The testing tools

A reference of the soundor-testing skill.

soundor-testing reads this reference when a task needs it. Source on GitHub

What each Soundor testing tool is, as of Soundor 0.21. Package versions follow the framework's (@soundor/vitest-e2e@0.21.1 with soundor@0.21.1), except the runtimes and the VST3 host, which have their own. Check the installed .d.ts files for exact APIs.

Rust: soundor::testing

Part of the generated SDK (.soundor/generated/rust/soundor/src/testing.rs), used from lib/tests/ or #[cfg(test)] modules.

  • TestProcessor<P>: builds and prepares the real processor with a sample rate, block size, layout and parameters; process() splits input into blocks; parameters_mut(), set_parameter(), state_mut(), transport_mut(), prepare(), reset(), process_buses().
  • CountingAllocator: a global allocator counting allocations made by the processor's calls; allocations() on the harness.
  • TestController: runs the controller with its stores, control queue and worker on a TestHost that stands in for parameters, state, History and presets; TestController::for_processor(&processor) shares resources with a TestProcessor.
  • NativeProcessor: drives the C ABI that soundor::export! generates, for adapter-level checks.

Sees: the real DSP and controller logic. Does not see: the plugin binary, the host, the UI.

Simulated runtime: Vitest

  • @soundor/vitest: the Vitest plugin soundor(); reads soundor.config.ts so soundor:parameters and soundor:native are the plugin's own.
  • vitest-environment-soundor: the soundor test environment, a fresh in-memory runtime per test.
  • @soundor/testing-library (/react for React): render, screen, queries by role, text and label, userEvent, fireEvent, waitFor, advanceTime, and test controls: testParameters, testHost, mockNative, emitNative, publishStream, testView, testEditor.

Sees: the node tree, input and focus, accessibility, parameters with their real mappings and text, the host, mocked native APIs, storage, animations on a virtual clock. Does not see: layout positions, pixels, canvas drawing, audio, the engine, a DAW.

The real plugin: VST3 host and end-to-end

  • @soundor/vst3-host: a standalone VST3 host executable driven from Node.js, with or without the editor: load any VST3, process audio, set parameters, send MIDI and transport, save and restore state, read latency and tail.
  • @soundor/vitest-e2e: Vitest integration over the host. launchHost() (no editor, no display, any VST3) and launchPlugin() (editor open, UI connected through DevTools: Debug Soundor builds only); locators and retrying matchers (toBeVisible, toHaveText, toBeChecked…); toMatchScreenshot; audio helpers (sine, noise, impulse, silence, peak, rms, dominantFrequency, noteOn, render in irregular blocks) and matchers (toBeSilent, toBeCloseToAudio, toMatchAudioSnapshot). Failing tests leave a screenshot, the node tree and the host log in .soundor/test-results/.
  • @soundor/driver: inspects and drives a running plugin's native UI through its DevTools session; @soundor/driver/vst3 launches a Debug build in the host with a Driver. Useful in scripts and for debugging; for tests, prefer @soundor/vitest-e2e, which wraps it.

Sees: the real binary, the engine's layout and drawing, native input, real audio. Needs a Debug build for UI access, and a display (or Xvfb) for the editor.

Outside Soundor

  • Playwright: the web build in Chromium, with real browser layout and input (Orbit and Prism use it for their web builds).
  • pluginval (Tracktion): validates a VST3 against what hosts do, at strictness levels up to 10. Not part of Soundor; Orbit and Prism run it in CI on release builds.

On this page