You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-2Lines changed: 27 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -144,7 +144,32 @@ The dashboard runs on `http://localhost:5173` and proxies API calls to `http://l
144
144
PUBLIC_API_URL=http://your-server:3000 pnpm dev
145
145
```
146
146
147
-
### 5. Initialize TraceVault in a repository
147
+
### 5. Run tests
148
+
149
+
Unit tests (no database required):
150
+
151
+
```sh
152
+
cargo test -p tracevault-core
153
+
cargo test -p tracevault-server --lib
154
+
cargo test -p tracevault-cli
155
+
```
156
+
157
+
Integration tests require a running PostgreSQL instance. A separate test database is provided via Docker Compose to avoid interfering with your development database:
158
+
159
+
```sh
160
+
# Start the test database (port 5433, uses tmpfs — no persistence)
161
+
docker compose -f docker-compose.test.yml up -d
162
+
163
+
# Run integration tests
164
+
source .env.test && cargo test -p tracevault-server --test '*'
165
+
166
+
# Tear down
167
+
docker compose -f docker-compose.test.yml down
168
+
```
169
+
170
+
The test database runs on port **5433** with separate credentials (`tracevault_test`), so it won't conflict with the dev database on port 5432.
171
+
172
+
### 6. Initialize TraceVault in a repository
148
173
149
174
```sh
150
175
cd /path/to/your/repo
@@ -192,7 +217,7 @@ The command also installs the Claude Code hook configuration in `.claude/setting
192
217
}
193
218
```
194
219
195
-
### 6. Authenticate and push traces
220
+
### 7. Authenticate and push traces
196
221
197
222
```sh
198
223
# Log in to a TraceVault server (opens browser for device auth):
0 commit comments