Skip to content

test: add regression coverage for case-aware install detection and CI progress#327

Draft
cursor[bot] wants to merge 3 commits into
masterfrom
impl/missing-test-coverage-fb24
Draft

test: add regression coverage for case-aware install detection and CI progress#327
cursor[bot] wants to merge 3 commits into
masterfrom
impl/missing-test-coverage-fb24

Conversation

@cursor
Copy link
Copy Markdown
Contributor

@cursor cursor Bot commented Jun 5, 2026

Risky behavior now covered

  • is_kotor_install_dir (diff CLI, patching CLI, tslpatcher diff engine): case-insensitive chitin.key and install-root detection on POSIX — regression risk from Case aware application (Case-aware application #151).
  • _supports_live_progress: disables live \r progress when CI or GITHUB_ACTIONS is set, ensuring percentage milestones reach log aggregators in automation.
  • create_installation layout: asserts canonical Modules/ directory casing (not lowercase modules/), matching Installation._find_resource_folderpath("Modules").
  • ConfigReader.from_filepath: resolves case-mismatched mod directory and INI filename via CaseAwarePath.

Test files added/updated

  • Libraries/PyKotor/tests/common/test_is_kotor_install_dir.py (new)
  • Libraries/PyKotor/tests/cli/test_json_commands.py
  • Libraries/PyKotor/tests/extract/test_installation.py
  • Libraries/PyKotor/tests/tslpatcher/test_reader.py

Why these tests materially reduce regression risk

These paths gate core workflows: detecting valid KotOR installs for diff/patch tools, loading TSLPatcher INIs from mod folders, and exporting installation JSON in CI. Case mismatches on Linux/macOS previously caused silent failures; the CI progress guard prevents log-only regressions in GitHub Actions. All 16 new/parametrized tests pass locally.

Open in Web View Automation 

cursoragent and others added 3 commits June 5, 2026 10:14
Co-authored-by: PuritanWizard <th3w1zard1@users.noreply.github.com>
Co-authored-by: PuritanWizard <th3w1zard1@users.noreply.github.com>
Co-authored-by: PuritanWizard <th3w1zard1@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2026

Message that will be displayed on users' first pull request

@github-actions github-actions Bot added python Pull requests that update python code libraries size/M Medium PR (100-300 lines) labels Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

libraries python Pull requests that update python code size/M Medium PR (100-300 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant