Skip to content

test: add tests for stats, events, tokens, changelog, and config tools #70

Description

@BryanFRD

Package
Which package does this affect? [ ] server [x] tools [ ] docs

Problem / Motivation
5 tool modules have zero test coverage:

  • stats.tsget_stats, health_check
  • events.tsrecord_event
  • tokens.tsget_me, list_tokens, create_token, revoke_token
  • changelog.tsread_changelog
  • config.tsread_config

Current coverage: 85.86% statements overall, but these modules bring it down significantly when measured individually. 73 tests pass but only cover 7 of 12 implemented tools.

Proposed solution
To be defined — see Problem / Motivation above.

Alternatives considered
None considered explicitly — this is the natural shape.

Additional context
Expected

  • Unit tests for each tool's input validation and response handling
  • Mocked HTTP tests for API-dependent tools
  • Error case coverage (auth failures, network errors, invalid input)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions