Documentation
¶
Overview ¶
Package e2e holds the end-to-end scenarios: whole flows through a running kōjō, its forge, its chat surface and its alert source, asserted on from the outside.
The tests build only with the e2e tag and run against a stack that is already up, the one `make dev-sbx` or `make dev-kind` starts: kōjō with the mock model provider (testdata/recordings/dev), a throwaway Forgejo with the demo repository, the Slack mock, and the Sentry mock that kōjō reads alerted issues from. `make e2e` runs them.
They find the stack through environment variables, which the dev scripts write to .kojo/e2e.env:
KOJO_E2E_URL kōjō's base URL KOJO_E2E_TOKEN an admin API token of kōjō KOJO_E2E_REPO the demo repository, as forgejo/<owner>/<name> KOJO_E2E_FORGEJO_URL Forgejo's base URL KOJO_E2E_FORGEJO_TOKEN an access token of the repository's maintainer KOJO_E2E_BOT the login of the account kōjō acts as KOJO_E2E_SLACKMOCK_URL the Slack mock's base URL KOJO_E2E_SENTRY_SECRET the client secret kōjō checks Sentry's webhooks with
A test whose variables are not set skips itself and names the one that is missing. scripts/e2e.sh turns a run in which nothing ran into a failure.