Skip to content

fix(reporter): test and correct summary counts#15

Merged
NhanAZ merged 2 commits into
mainfrom
agent/reporter-output-tests
Jun 9, 2026
Merged

fix(reporter): test and correct summary counts#15
NhanAZ merged 2 commits into
mainfrom
agent/reporter-output-tests

Conversation

@NhanAZ

@NhanAZ NhanAZ commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

What changed

Added focused JSON and text reporter tests, corrected singular/plural summary labels, and included informational findings in text summary counts.

Why

Reporter output is part of the CLI contract. The previous summary rendered labels such as 1 errors and omitted informational findings whenever errors or warnings were also present. The updated tests prevent those regressions while preserving the existing grouped layout.

Testing

  • npm.cmd run build - passed
  • npm.cmd test - 60 tests passed, 0 failed
  • npm.cmd run lint - passed
  • npm.cmd run prepublishOnly - passed
  • node bin/opk scan src/cli --json - 0 findings, 7 rules run
  • npm.cmd run scan - expected exit code 1 with 18 errors and 33 warnings from existing fixtures and rule definitions
  • git diff --cached --check - passed

Risks

Text consumers that asserted the grammatically incorrect summary labels will need to accept the corrected output. The grouped finding layout is unchanged.

Follow-up

Remove default npm registry access from OPK-006 and replace it with an explicitly approved local-first design.

@NhanAZ NhanAZ changed the title test(cli): add reporter output coverage fix(reporter): test and correct summary counts Jun 9, 2026
@NhanAZ NhanAZ merged commit 317a3c4 into main Jun 9, 2026
3 checks passed
@NhanAZ NhanAZ deleted the agent/reporter-output-tests branch June 9, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant