docs: correct README testing instructions for unit/integration split

The Testing section still told contributors to write a real mnemonic
to mnemonic.txt and run `npm test`, then claimed the result was full
agent-lifecycle coverage against Vector testnet. Since test:unit is
now the default `test` script (five wallet-free CBOR assertions), that
instruction produced a false green and silently skipped the coverage
it advertised. Document test:unit and test:integration separately and
drop the stale VECTOR_MNEMONIC env-var alternative, which setup.ts
never reads.
This commit is contained in:
FilipBl4gojevic
2026-07-27 15:34:32 +02:00
parent 9ae2095c3a
commit ca94722412

View File

@@ -178,14 +178,17 @@ docker run -p 3000:3000 vector-mcp
## Testing
```bash
# Set the wallet mnemonic (file or env var)
echo "your mnemonic words here" > mnemonic.txt
# or: export VECTOR_MNEMONIC="your mnemonic words here"
npm test
npm run test:unit
```
Tests cover the core tools end-to-end against Vector testnet, including the full agent lifecycle: register, discover, profile, update, transfer, message, and deregister.
No wallet, no network — pure logic only (CBOR encode/decode assertions). This is what CI runs on every PR.
```bash
echo "your mnemonic words here" > mnemonic.txt
npm run test:integration
```
Requires `mnemonic.txt` in the repo root containing a **funded Vector testnet** mnemonic. Covers the core tools end-to-end against Vector testnet, including the full agent lifecycle: register, discover, profile, update, transfer, message, and deregister. Never runs in CI.
## Architecture