Skip to content

Update: expand CLI coverage and refresh automation-first README - #9

Merged
hawkfry merged 3 commits into
mainfrom
feat/coverage-50-target
Mar 15, 2026
Merged

hawkfry merged 3 commits into
mainfrom
feat/coverage-50-target

Conversation

@hawkfry

@hawkfry hawkfry commented Mar 15, 2026

Copy link
Copy Markdown
Collaborator

Why are we changing this?

The branch improves confidence in the CLI before pushing further toward production use.

The main gaps addressed here are:

  • low test coverage on handwritten command/client code
  • a README that still described the project like a generic CLI scaffold instead of an automation-first Omni contract
  • test fixtures for the connection wizard that looked more secret-like than they needed to

What has changed?

  • added broader CLI command-group coverage in internal/cli/command_groups_test.go
  • added more client wrapper coverage in internal/client/wrappers_test.go
  • refreshed README.md so it matches the current repo behavior and leads with the machine-to-machine / automation-first contract
  • corrected README examples so command-local flags follow the parser behavior the CLI actually has today
  • softened connection test fixture values in internal/cli/connections_test.go to make them clearly fake and reduce secret-scanner false positives

How to test it and expected results?

  1. Run go test ./...
    Expected result: all packages pass.

  2. Read README.md.
    Expected result: it documents the current auth model (pat, org, both), automation contract (--json, --plain, schema, exit-codes, api call), and uses examples that match the current parser behavior.

  3. Inspect internal/cli/connections_test.go.
    Expected result: the connection fixture values are obviously example-only values like .invalid hosts and example-test-password-not-a-secret, not realistic credentials.

Checklist:

  • My pull request represents one logical piece of work.
  • My commits are related to the pull request and look clean.
  • My code follows our coding conventions.
  • My code has appropriate tests and documentation.

@hawkfry
hawkfry merged commit 3e87d9e into main Mar 15, 2026
4 checks passed
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