Usability acceptance harness
Runs the simple-setup acceptance script (design §6) against a fresh app home
in a headless browser and writes report.md, report.json and screenshots.
go run ./tools/acceptance/usability -fake # synthetic API, about 35 minutes
go run ./tools/acceptance/usability -live -out DIR # a real workspace, about 25 minutes
NOT YET IMPLEMENTED is incomplete acceptance, never a pass; -strict makes it fail the run.
Live mode
Live mode posts, reacts to and deletes test threads, so use a disposable
channel. Every mutation goes through a local proxy that refuses any channel
other than the two named below. Tokens are read from the environment only and
are never printed.
| Variable |
What it is |
CK_BOT_TOKEN |
Bot token of the app under test (current setup slack --print-manifest) |
CK_USER_TOKEN |
User token of a workspace admin or owner from the same install. The harness also reacts with it, so add the user scope reactions:write to the test app; the product manifest does not ask for it |
CK_SECOND_USER_TOKEN |
A second, non-admin identity that can post and react in the channel. T6, T9 and 6.5-member need a real member's user token: the owner list shows people only, so a bot is not offered. With a bot token here they fail and are blocked, not product failures |
CK_INDEPENDENT_TOKEN |
A different token that can read the channel's history and reactions; only used to observe |
CK_CHANNEL |
Disposable channel; the three identities above and the bot are members |
CK_SECOND_CHANNEL |
Another public channel the bot has not joined (T5 joins it; remove the bot before a rerun) |
CK_APP_TOKEN |
Optional app-level token; enables the instant-mode fixture |
The run deletes every message it posted. A CLEANUP row lists anything it could not delete.