Skip to content

test(cli): add end-to-end CLI output and exit-code regression tests - #25

Merged
eleven-smg merged 2 commits into
codepacct:mainfrom
playlikeboy:test/cli-e2e
Nov 29, 2026
Merged

eleven-smg merged 2 commits into
codepacct:mainfrom
playlikeboy:test/cli-e2e

Conversation

@playlikeboy

Copy link
Copy Markdown
Contributor

Closes #10

Summary

  • Add end-to-end CLI integration tests in test/cli.test.js exercising bin/codepact.js over temporary workspaces and examples/clean / examples/broken fixtures.
  • Cover --help / -h, --json, --markdown, --out, --strict vs non-strict warning handling, and bad argument / missing or malformed config failures, asserting exit codes 0, 1, and 2 and cleaning up temporary directories.

Verification

  • npm test: all tests passed
  • npm run check:clean (exit 0) and npm run check:broken (exit 1)

@eleven-smg
eleven-smg merged commit 6e7c392 into codepacct:main Nov 29, 2026
2 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.

Add end-to-end CLI output and exit-code regression tests

2 participants