Docs pass: refresh statuses, add resume checklist, poll and log decisions
This commit is contained in:
+13
-4
@@ -5,14 +5,17 @@ This document describes the test setup, the run commands, and the known gaps.
|
||||
## Unit tests
|
||||
|
||||
The pure daemon logic has unit tests. The tests cover the ring buffers, the mention helpers, the
|
||||
command parser, the trust check, and the pacing range.
|
||||
command parser, the poll parser, the trust helpers, the context assembly, the redaction, and the
|
||||
pacing range. The cache tests cover merge, dedupe, trimming, and eviction.
|
||||
|
||||
```sh
|
||||
cd poc
|
||||
pnpm test:comm
|
||||
pnpm test:cache
|
||||
```
|
||||
|
||||
The file is `poc/src/test-communication.ts`. The tests do not need Discord or Vesktop.
|
||||
The files are `poc/src/test-communication.ts` and `poc/src/test-cache.ts`. The tests do not need
|
||||
Discord or Vesktop.
|
||||
|
||||
## Type checks
|
||||
|
||||
@@ -49,6 +52,10 @@ VESKSLOP_SOCKET=/tmp/vesktop-puppet-mock.sock TEST_TRIGGER_CONTENT="whitelist li
|
||||
Expected result: the daemon log shows one trusted entry with the parsed command. The mock log shows
|
||||
the reply (`message.send`). The reply wait is inside the 500 to 2800 ms window.
|
||||
|
||||
The mock also covers tiers, continuation, polls, reactions, and the action log. Set config values
|
||||
with `set_puppet_config` before a test. Inject a reaction with
|
||||
`TEST_TRIGGER_REACTION=1 TEST_REACTION_MESSAGE_ID=msg-1 TEST_REACTION_EMOJI="1️⃣" pnpm test:trigger`.
|
||||
|
||||
## CDP probe
|
||||
|
||||
The probe checks the CDP fallback transport. Start the client with
|
||||
@@ -89,7 +96,7 @@ Notes:
|
||||
|
||||
- `VENCORD_USER_DATA_DIR` pins the Electron profile. The profile holds the client session.
|
||||
- Write `{"firstLaunch": false}` to `<DATA_DIR>/state.json` before the first start. This step skips
|
||||
the first-launch window. The `VESKSLOP_HEADLESS=1` flag does the same job when it is in the tree.
|
||||
the first-launch window. The `VESKSLOP_HEADLESS=1` flag does the same job.
|
||||
- The container needs `libasound.so.2` for Electron. Extract the library locally when the system
|
||||
package is not available.
|
||||
|
||||
@@ -120,5 +127,7 @@ The CDP transport was verified earlier with the same checks.
|
||||
| Gap | Effect |
|
||||
| --- | --- |
|
||||
| Live trigger tests need an incoming message. | Use the mock core, or send from zzib's account. |
|
||||
| `reaction.add` and the message ID return are mock-verified only. | Confirm Discord's internal `addReaction` lookup on the first live run. |
|
||||
| Polls and other chat commands are mock-verified only. | Run them on the live client. |
|
||||
| `message.read` is cache-only. | A channel that the client never opened returns zero messages. |
|
||||
| Voice, audio, and video are not started. | No test coverage. |
|
||||
| Voice, audio, and video are not started. | No coverage. |
|
||||
|
||||
Reference in New Issue
Block a user