test: add postgres integration verification

This commit is contained in:
2026-07-18 16:53:47 +08:00
parent e1028c7197
commit a965af4d46
3 changed files with 40 additions and 27 deletions

View File

@@ -21,6 +21,16 @@ postgres://postgres:Weidong2023~!@8.137.107.29:19432/agent_dev?sslmode=disable
Do not hardcode this value into application source files. Pass it through `DATABASE_URL`.
Run:
```powershell
Set-Location backend
$env:DATABASE_URL='postgres://postgres:Weidong2023~!@8.137.107.29:19432/agent_dev?sslmode=disable'
go test -tags integration ./internal/db -run TestPostgresPing -v
```
Expected: `TestPostgresPing` passes.
## Web
The frontend is Svelte-only.