-
-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathpytest.ini
More file actions
60 lines (52 loc) · 1.56 KB
/
Copy pathpytest.ini
File metadata and controls
60 lines (52 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[pytest]
# Pytest configuration for piper-plus
# Test discovery patterns
python_files = test_*.py *_test.py
python_classes = Test* *Tests
python_functions = test_*
# Test paths
testpaths =
src/python/tests
src/python_run/tests
test
tools/benchmark
# Markers for test categorization
markers =
unit: Unit tests (fast, isolated)
integration: Integration tests (may require external resources)
slow: Slow running tests
japanese: Japanese TTS specific tests
training: Training related tests
inference: Inference related tests
requires_gpu: Tests that require GPU
requires_openjtalk: Tests that require OpenJTalk
requires_model: Tests that require a model file
benchmark: Performance benchmark tests
# Coverage configuration
# `--cov-fail-under` は pyproject.toml の `[tool.coverage.report] fail_under`
# を引き継ぎつつ、pytest 経由でも明示的に閾値を強制する (CI fail-fast)。
addopts =
--verbose
--strict-markers
--cov=src/python/piper_train
--cov=src/python_run/piper_plus
--cov-report=html
--cov-report=term-missing
--cov-report=xml
--cov-fail-under=70
--ignore=scripts/test_phoneme_input.py
--ignore=scripts/test_streaming_mode.py
# Timeout for tests (in seconds)
timeout = 300
# Parallel execution settings
# Use -n auto for automatic CPU count detection
# addopts = -n auto
# Output and reporting
console_output_style = progress
junit_family = xunit2
# Warnings
filterwarnings =
error
ignore::UserWarning
ignore::DeprecationWarning
ignore::FutureWarning