test: add mvp verification plan

This commit is contained in:
2026-07-18 16:50:04 +08:00
parent 8fc8298a62
commit ddebc022fa
9 changed files with 173 additions and 1 deletions

64
docs/mvp-verification.md Normal file
View File

@@ -0,0 +1,64 @@
# MVP Verification
## Backend
Run:
```powershell
Set-Location backend
go test ./... -v
```
Expected: all backend tests pass.
## PostgreSQL Integration
Use this test database URL when live PostgreSQL verification is required:
```text
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`.
## Web
The frontend is Svelte-only.
Run:
```powershell
Set-Location apps/web
npm test -- --run
npm run build
npx playwright test
```
Expected: component tests, production build, and smoke test pass.
## Desktop
Run:
```powershell
Set-Location apps/web
npm run build
Set-Location ../desktop
npm run build
```
Expected: Tauri desktop bundle builds when Rust/Cargo is installed. On this machine, verification currently fails before compilation because `cargo` is not available in PATH.
## Manual MVP Flow
1. Open the client and enter the server IP or domain on the login screen.
2. Create or log in as a private-deployment user.
3. Create a project.
4. Add text to project inbox.
5. Click Analyze/Organize.
6. Confirm one task and one note from the suggestion list.
7. Assign the task to another system user.
8. Explicitly share one note with the task.
9. Search for text from the note body in global search.
10. Open an AI session under the project and reference the note.
11. Use Tauri quick capture to send text into the active project inbox.