Skip to content

test(cli): add CLI test suite with 19 tests covering version, help, init, diff, encrypt/decrypt, and sync#22

Merged
Coding-Dev-Tools merged 1 commit into
masterfrom
Openclaw/envault/add-cli-tests
May 18, 2026
Merged

test(cli): add CLI test suite with 19 tests covering version, help, init, diff, encrypt/decrypt, and sync#22
Coding-Dev-Tools merged 1 commit into
masterfrom
Openclaw/envault/add-cli-tests

Conversation

@Coding-Dev-Tools

Copy link
Copy Markdown
Owner
  • Add test_cli.py with CliRunner-based tests for all major commands:
    • version, help, init (config creation and error handling)
    • diff with config and diff-files (identical, different, not-found)
    • encrypt/decrypt roundtrip, custom output, delete original, wrong password
    • sync dry-run and source-not-found error cases
  • CLI coverage: 0% → 47% (101 of 217 statements covered)
  • Overall project coverage: 55% → 66%

…nit, diff, encrypt/decrypt, and sync

- Add test_cli.py with CliRunner-based tests for all major commands:
  - version, help, init (config creation and error handling)
  - diff with config and diff-files (identical, different, not-found)
  - encrypt/decrypt roundtrip, custom output, delete original, wrong password
  - sync dry-run and source-not-found error cases
- CLI coverage: 0% → 47% (101 of 217 statements covered)
- Overall project coverage: 55% → 66%
@Coding-Dev-Tools Coding-Dev-Tools merged commit 30b2c07 into master May 18, 2026
3 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