Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

chatcops test: JUnit reporter and --output

Ouverte
#416 5 commentaires 0 réactions 1 personne assignée Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@kachamsiddarth y travaille déjà.

Depuis le 28/10/2026.

Évaluation

Cette issue n'a pas encore été évaluée.

Description

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
Langage dominant
TypeScript
Étoiles
13
Forks
7
Merge moyen
3 h 39 min
PR mergées (30 j)
275

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de codercops/chatcops

Toutes les issues de codercops/chatcops

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.