Skip to content

Fix pytest imports and gate manual VOICEPEAK tests - #15

Merged
Nanahuse merged 4 commits into
feature/v1.2.0from
fix/v1.2.0-test-import
Aug 9, 2026
Merged

Nanahuse merged 4 commits into
feature/v1.2.0from
fix/v1.2.0-test-import

Conversation

@Nanahuse

@Nanahuse Nanahuse commented Aug 8, 2026 •

Copy link
Copy Markdown
Owner

What changed

  • Configure pytest to include the repository root on its import path.
  • Rename the manual VOICEPEAK file-generation module with a test_ prefix so pytest lists it.
  • Mark the manual module with pytest's built-in xfail(run=False) behavior; pass the built-in --runxfail option to execute it.

Why

Plain uv run pytest could not import voicepeak_wrapper, while the manual integration module was absent from normal pytest collection. The manual tests require a local VOICEPEAK installation and create output files, so they must not execute by default.

Impact

Normal test runs collect the manual integration cases but report them as NOTRUN xfails. Developers can explicitly execute them with uv run pytest --runxfail. No custom pytest hook or option is introduced. Public APIs, runtime behavior, dependencies, and communication protocols are unchanged.

Validation

  • uv run pytest -q — 5 passed, 5 xfailed (manual cases NOTRUN)
  • uv run pytest --collect-only -q — 10 tests collected
  • uv run pytest --runxfail --collect-only -q — 10 tests collected; VOICEPEAK was not executed
  • git diff --check — passed

@Nanahuse Nanahuse changed the title Fix local pytest package imports Fix pytest imports and gate VOICEPEAK integration tests Aug 9, 2026
@Nanahuse Nanahuse changed the title Fix pytest imports and gate VOICEPEAK integration tests Fix pytest imports and gate manual VOICEPEAK tests Aug 9, 2026
@Nanahuse
Nanahuse marked this pull request as ready for review August 9, 2026 01:35
@Nanahuse
Nanahuse merged commit 138f8c2 into feature/v1.2.0 Aug 9, 2026
4 checks passed
@Nanahuse
Nanahuse deleted the fix/v1.2.0-test-import branch August 9, 2026 01:35
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