Skip to content

Improve CLI test coverage and harden proxy configuration behavior#552

Merged
di-sukharev merged 4 commits intomasterfrom
improve_tests
Apr 10, 2026
Merged

Improve CLI test coverage and harden proxy configuration behavior#552
di-sukharev merged 4 commits intomasterfrom
improve_tests

Conversation

@di-sukharev
Copy link
Copy Markdown
Owner

Summary

  • split CLI test coverage into smoke, core, and prompt-module suites and make test:e2e build the CLI before running
  • move core e2e flows to a process-based harness with mock OpenAI-compatible HTTP assertions for real CLI behavior
  • add coverage for help/version, regenerate/edit flows, push variants, first-run setup, missing API key recovery, invalid model recovery, ignore rules, hooks, and non-git exits
  • add a test-only version-check bypass to keep startup-path tests offline and deterministic
  • tighten proxy/config behavior with explicit OCO_PROXY=null support, ambient proxy fallback, improved first-run detection, and clearer endpoint-aware errors
  • refresh unit tests for proxy handling, config parsing, error formatting, Gemini/OpenAI request shaping, and update the checked-in build artifact

Testing

  • npm run test:unit
  • npm run test:e2e:smoke
  • npm run test:e2e:core
  • npm run test:e2e:prompt-module
  • npm run test:e2e

Support explicit proxy disabling and ambient proxy fallback without leaking env state into config.

Improve first-run detection, endpoint-specific error messaging, diff exclusions, and runtime helper boundaries covered by unit tests.
Split smoke, core, and prompt-module suites and make test:e2e self-contained with an explicit build step and version-check bypass.

Move core CLI coverage to a process-based harness with mock OpenAI boundary checks, add user-path scenarios, refresh CI jobs, and commit the rebuilt out/cli.cjs artifact.
Replace the createRequire fallback with a direct Mistral import so the CJS build stops emitting the import.meta warning.

Refresh the bundled out/cli.cjs artifact after the change.
@di-sukharev di-sukharev merged commit 7e41139 into master Apr 10, 2026
6 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