Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

chatcops test: --url to test a deployed server

Offen
#419 3 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@srujankaleru2007 arbeitet bereits daran.

Seit 28.10.2026.

  • #448 von @srujankaleru2007 — offen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

enhancement hacktoberfest testing

chatcops test runs the bot in process from the config. --url https://example.com/chat runs the same eval files against a deployed server instead, over the wire protocol, as a smoke test after a deploy.

What to add

  • In packages/cli/src/test/run.ts, runOnce (line 86) sends each turn with sendTurn (line 135), which calls the handler in process. Add a second way to send a turn: POST the same body to the URL with format: 'v1' (see website/src/content/docs/server/protocol.mdx for the request and the stream), parse the stream into the same TurnResult, and keep the conversationId across turns.
  • With --url, the server config isn't needed. A test with mocks can't run that way, so fail it with a reason that says so instead of skipping it quietly.
  • --header "Authorization: Bearer ..." (repeatable) for servers that need it. Never print header values.
  • The server's rate limit will apply, so mention --concurrency 1 in the docs. Recording with --record works the same way, since replays happen at the fetch level (packages/cli/src/test/cassette.ts).

Acceptance criteria

  • Tests against a real server started in the test with createChatHandler and node:http (see packages/server/tests for examples), including multi-turn, an error part and a refused request
  • Documented in website/src/content/docs/core/testing.mdx, with a changeset for @chatcops/cli (minor)
  • pnpm test:coverage and pnpm lint pass
Vorherrschende Sprache
TypeScript
Sterne
13
Forks
7
Ø Merge
3 Std. 39 Min.
Gemergte PRs (30 T.)
275

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus codercops/chatcops

Alle Issues in codercops/chatcops

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.