Docs: "Test your bot before launch" guide
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 72/100
- Type d'issue
- Documentation
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- github-actions, typescript, yaml
- Domaine
- documentation
Piste de recherche
Read website/src/content/docs/core/testing.mdx for the documented eval assertions and GitHub Actions workflow, then check the eval schema in packages/cli/src/test/load.ts. Add the specified guide at website/src/content/docs/getting-started/test-before-launch.mdx, update website/astro.config.mjs and link to it near the top of testing.mdx. Done means the examples and recorded replay are verified, and the docs check and website build pass.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
F-07 task 19. chatcops test is documented as a reference in website/src/content/docs/core/testing.mdx: eval files at line 35, the judge at 124, costs at 177, recorded replays at 221, and a GitHub Actions example at 256. What's missing is a guide someone can follow before launch: from no tests to a suite that runs on every pull request for free.
What to do
A new page, website/src/content/docs/getting-started/test-before-launch.mdx, added to the Getting Started sidebar in website/astro.config.mjs after "Index Your Site". It has these steps:
- Write the first eval file: three to five questions your bot has to get right, such as pricing, a lead being captured, and an off-topic question it should decline. Use
contains,calls-tool,lead-capturedand onejudgeassertion.testing.mdxlists them all. - Run it live with
npx chatcops test, and read the pretty output and a failure. - Record it with
--record, commitevals/__cassettes__/, and explain why replay is free and the same every time. - Run it in CI: the workflow from
testing.mdx:256, replaying on every PR with no API keys. When a prompt change breaks replay, re-record. - Add a simulated visitor (
simulate, #512) for one multi-turn case.
End with a short "What to test" list for a typical site bot.
Acceptance criteria
- The page is in the sidebar. Every TypeScript block passes
pnpm docs:check, and every YAML example matches the eval file schema (packages/cli/src/test/load.ts). - You ran the example eval file yourself against a bot (any provider), recorded it, and ran it again with
--replay. Say in the PR what you ran. -
testing.mdxlinks to the new page near the top. -
pnpm --filter @chatcops/website buildpasses. Docs only, so no changeset.
Comment here to be assigned.
- Langage dominant
- TypeScript
- Étoiles
- 13
- Forks
- 7
- Merge moyen
- 3 h 15 min
- PR mergées (30 j)
- 329
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de codercops/chatcops
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 25/100
codercops/chatcops#546 · 4 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 3/5 1-2 jours Accessibilité débutants 64/100
codercops/chatcops#542 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Server: validate `rateLimit.windowMs` before creating the limiterPeut-être pris @ashutoshpalhare l’a pris il y a 3 jours. Ouverte
codercops/chatcops#452 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Widget: a "New reply" button when the visitor has scrolled upPeut-être pris @srujankaleru2007 l’a pris il y a 4 jours. Ouverteenhancement widget
codercops/chatcops#420 · 3 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
chatcops test: --url to test a deployed serverPeut-être pris @srujankaleru2007 l’a pris il y a 4 jours. Ouverteenhancement testing
codercops/chatcops#419 · 3 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de codercops/chatcops
Issues similaires
-
Add: Class TV ModaOuvertecheck:passed streams:add
Difficulté 1/5 Moins d'une heure Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
GiganticMinecraft/seichi-playguide#183 ·
Les mainteneurs répondent en général sous 1 jour
-
area: core complexity: easy impact: medium
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
ueberdosis/tiptap#8668 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
longbridge/nsh#804 ·
Les mainteneurs répondent en général sous 1 jour