Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ ignore = [
"TRY300",
]

[tool.pytest.ini_options]
pythonpath = ["."]

[tool.ruff.lint.per-file-ignores]
"test/*" = ["INP001", "PLR2004", "SLF001"]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
# Copyright (c) 2023 Nanahuse
# This software is released under the MIT License
# https://opensource.org/license/mit/

"""VOICEPEAK integration tests that create output files.

These tests require a local VOICEPEAK installation. Pytest does not collect this
module by default; run it explicitly when file-generation coverage is needed:
These tests require a local VOICEPEAK installation and are marked xfail with
``run=False``, so they are reported as NOTRUN without launching VOICEPEAK. Run
them with pytest's built-in ``--runxfail`` option when file-generation coverage
is needed:

uv run --group dev --with-editable . pytest --runxfail

uv run --extra dev --with-editable . pytest test/manual_voicepeak_file_generation.py
Or run just this module:

uv run --group dev --with-editable . pytest \\
test/test_manual_voicepeak_file_generation.py --runxfail
"""

import asyncio
Expand All @@ -12,6 +23,8 @@

import pytest

pytestmark = pytest.mark.xfail(run=False, reason="requires a local VOICEPEAK installation; pass --runxfail to run")

TEST_DIRECTORY = os.path.dirname(os.path.abspath(__file__))
OUTPUT_PATH = os.path.join(TEST_DIRECTORY, "output")

Expand Down
Loading