Skip to content

Add native Windows compatibility for base-cli testing and terminal behavior #38

Description

@codeforester

Parent: #35

Goal

Make the generic test helpers and terminal-facing behavior reliable on Windows 10/11.

Scope

  • Make base_cli.testing.invoke(home=...) isolate the relevant Windows home/data environment as well as HOME.
  • Preserve process-wide CWD restoration and path handling on Windows.
  • Exercise Click invocation through cmd.exe and PowerShell-compatible environments.
  • Validate console encoding, newline handling, color detection, and NO_COLOR/explicit color controls.
  • Record the effective Windows shell consistently, using COMSPEC when SHELL is absent.
  • Keep shell startup files and consumer-specific command execution out of the generic package.

Dependencies

Acceptance criteria

  • The complete base-cli test suite passes on windows-latest.
  • Test helpers do not leak temporary home, cache, or CWD state.
  • Terminal output remains deterministic when redirected.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or product improvement

Type

No type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions