Files
verdande/.gitignore
T
Kristian WindandClaude Opus 5 1424f43a40 test(e2e): smoke tests that drive the real binary
The brief asked for these under Definition of done and they were never
written. 610 Go tests, none of which opens a browser.

Six flows: create the first account and sign in, quick add and tick a
task off, click every link in the sidebar, open a task and edit it, walk
every settings tab, and check that the manifest's icons and the service
worker can actually be fetched. Every assertion is on rendered content
rather than on a URL — the binary serves the SPA shell for anything it
does not recognise, so toHaveURL passes on precisely the bug this exists
to catch.

The suite builds the frontend, copies it into cmd/verdande/webbuild and
starts the real binary, every run. Merely starting the server would test
whatever frontend was copied there last, which during development is
nearly always the wrong one, and a green report on code that is not
running is worse than no report.

Chromium only. A smoke test catches a build that does not work at all;
running it in three engines finds the same breakage three times.

They found four bugs the first time they ran, fixed in the commits before
this one: concurrent writes returning SQLITE_BUSY, a completed task
keeping its row, the same task landing in the list twice, and a database
failure presenting as everybody being logged out.

Co-Authored-By: Claude Opus 5 <[email protected]>
2026-08-17 10:56:33 +02:00

43 lines
677 B
Plaintext

# Build output
/verdande
/dist/
*.exe
# The data volume: database, uploaded files, backups. Never in git.
/data/
*.db
*.db-wal
*.db-shm
# Frontend
node_modules/
/web/.svelte-kit/
/web/build/
# Local environment
.env
.env.local
# Editor / OS
.DS_Store
*.swp
.idea/
.vscode/
# Copied in by the Docker build; never committed.
/cmd/verdande/webbuild/
# Frontend build output and dependencies
/web/build/
/web/.svelte-kit/
# End-to-end runs: the throwaway instance the suite starts, the saved session it
# signs in with, and whatever a failure left behind.
/web/.playwright-data/
/web/e2e/.auth/
/web/test-results/
/web/playwright-report/
# Built documentation
/site_build/