In effort to maintain a stable application Thunderdome is supported by automated testing
Playwright is used for End to End testing of Thunderdome, keep tests atomic!
cd e2e
npm ci
npx playwright install --with-deps
npm testFrontend unit tests are run with Vitest and use Playwright browser automation for Svelte component testing via vitest-browser-svelte.
If not already installed, install UI deps and Playwright
cd ui
npm ci
npx playwright install --with-depsThen you can run tests
task test-ui- Refer to vitest-browser-svelte documentation for Svelte component testing patterns
- Test files are named
{componentName}.test.ts - Test files can be placed either:
- Alongside source files as
{componentName}.test.ts - In
__tests__folders:ui/src/pages/__tests__/*.test.tscorresponds toui/src/pages/*.svelte
- Alongside source files as
- Tests run in a Playwright browser environment (Chromium by default)
Run task test-go to run go tests