Skip to content

Improve test coverage (command-level integration tests) #15

Description

@willkg

Unit tests cover internal/client (httptest) and internal/convert (golden regression suite), but the command flows are only exercised manually.

Add command-level integration tests against an httptest mock Confluence for:

  • update: title lookup + page_id write-back, mtime skip vs. --force, attachment sync, page-width assert.
  • create: two-phase validation, parents-first topological order, frontmatter write-back.
  • fix: reconcile changes and the "already consistent" no-op (no file write).
  • info: metadata rendering + --properties.

Also fill gaps in internal/client method coverage (e.g. CreatePage/UpdatePage/GetUser). Consider a shared mock-server test helper.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions