Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

chatcops test: JUnit reporter and --output

オープン
#416 コメント 5 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@kachamsiddarth がすでに取り組んでいます。

2026年10月28日 から。

評価

この issue はまだ評価されていません。

説明

enhancement good first issue hacktoberfest testing

CI systems (GitLab, Jenkins, Azure, the GitHub test report actions) read JUnit XML. This adds --reporter junit.

How reporters work
Reporters are registered in REPORTERS (packages/cli/src/test/reporters/index.ts:32). A Reporter has onResult(result), called as each test finishes, and onEnd(results, summary), called once with all of them and a RunSummary (mode, judge, cost). reporters/json.ts is the shortest example and reporters/pretty.ts the default. They get a ReporterOutput to write to, which is stdout today.

What to add

  • reporters/junit.ts: one <testsuite> per eval file and one <testcase> per test, with classname the file and name the test name, the time in seconds from the turns' latencyMs, and a <failure> with the failed reasons and the reply for failed tests. Escape XML properly.
  • --output <file> in packages/cli/src/main.ts (next to reporter, around line 136). With one --reporter, write to the file instead of stdout. With several, --reporter junit=evals.xml style is clearer, so support name=file per reporter and make --output the shortcut for a single one. Pick what you think reads best and explain it in the PR.

Acceptance criteria

  • Tests: the XML for passing, failing and errored tests, escaping of <, & and quotes, writing to a file
  • Documented in website/src/content/docs/core/testing.mdx, with a changeset for @chatcops/cli (minor)
  • pnpm test:coverage and pnpm lint pass
主要言語
TypeScript
スター
13
フォーク
7
平均マージ
3時間 39分
マージ済み PR(30日)
275

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

codercops/chatcops のほかの issue

codercops/chatcops の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。