Skip to content

Improve Voicepeak test coverage - #16

Merged
Nanahuse merged 3 commits into
feature/v1.2.0from
agent/improve-test-coverage-v1.2.0
Aug 9, 2026
Merged

Nanahuse merged 3 commits into
feature/v1.2.0from
agent/improve-test-coverage-v1.2.0

Conversation

@Nanahuse

@Nanahuse Nanahuse commented Aug 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add unit tests for missing executable handling and private command validation branches
  • Cover narrator, emotion, speed, pitch, output-path, and text-file command construction
  • Cover empty output and missing trailing newline edge cases
  • Keep the 5 existing real-VOICEPEAK xfail integration tests unchanged
  • Add 3 real-VOICEPEAK integration tests for WAV overwrite, narrator/emotions, and pathlib.Path text-file I/O
  • Keep production code and runtime dependencies unchanged

Why

The voicepeak_wrapper package had uncovered validation and command-building branches. These tests improve regression protection for normal, error, and boundary behavior.

Impact

Test-only change. Total measured package coverage increases from 81% to 100%. The default suite reports 34 passed / 8 xfailed; all 8 xfailed tests require a local VOICEPEAK installation and run explicitly with --runxfail.

Verification

  • uv run --group dev --with-editable . pytest -q — 34 passed, 8 xfailed
  • uv run --group dev --with pytest-cov pytest --cov=voicepeak_wrapper --cov-report=term-missing -q — 100% (75 statements, 0 missed)
  • uv run --group dev ruff check .
  • uv run --group dev ruff format --check .
  • uv run --group dev ty check

@Nanahuse
Nanahuse marked this pull request as ready for review August 9, 2026 08:01
@Nanahuse
Nanahuse merged commit 5e8e3f7 into feature/v1.2.0 Aug 9, 2026
4 checks passed
@Nanahuse
Nanahuse deleted the agent/improve-test-coverage-v1.2.0 branch August 9, 2026 08:24
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