Skip to Content
Soundor Skills

Web build and VST3 validation

A reference of the soundor-testing skill.

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

The web build in a browser

The web runtime's layout, input and audio are the browser's. Test the built site with Playwright, as Orbit and Prism do:

npm install -D @playwright/test
npx playwright install chromium
// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
  testDir: './e2e/web',
  use: { baseURL: 'http://localhost:4174' },
  projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
  webServer: {
    command: 'npx vite preview --outDir .soundor/dist/web --port 4174',
    url: 'http://localhost:4174/',
    reuseExistingServer: !process.env['CI'],
  },
});
// e2e/web/plugin.spec.ts
import { expect, test } from '@playwright/test';

test('the plugin view renders its controls', async ({ page }) => {
  await page.goto('/?embed');
  await expect(page.getByRole('button', { name: 'Reset' })).toBeVisible();
});

Build first (npm run build:web). The web runtime presents Soundor's accessibility semantics as ARIA, so role-based locators work. Audio needs a user gesture in the page before it starts. ?embed shows the plugin view without the web host's panel.

VST3 validation with pluginval

pluginval loads a VST3 the way hosts do and runs its checks (parameters, state, threading, editor). It is not part of Soundor; download a release and verify its checksum:

npm run build:vst3
./pluginval --strictness-level 10 --validate-in-process \
  --validate ".soundor/dist/vst3/My Plugin.vst3"

On Linux without a display, run it under xvfb-run -a for its editor tests. Validate the release build: that is what users load. Orbit's CI (.github/actions/pluginval in https://github.com/soundor/orbit) pins the version and its SHA-256 per platform.

In CI

  • Run npm run doctor first: it fails fast on a missing toolchain.
  • Rust tests and UI tests need no display; end-to-end tests with an editor run under xvfb-run -a on Ubuntu runners (sudo apt-get install -y xvfb); macOS and Windows runners need nothing extra.
  • Build the Debug VST3 for end-to-end tests, the release build for pluginval.
  • Upload .soundor/test-results on failure (hidden folder: set include-hidden-files: true).
  • Commit screenshot and audio snapshots from the platform CI compares on.

On this page