Skip to content

Commit 4e81f60

Browse files
committed
chore(pytest): update pytest configuration for enhanced testing
- Added `testpaths` to specify the `tests` directory as the default test location. - Enhanced `addopts` with: - `--maxfail=1`: Stop after the first test failure. - `--disable-warnings`: Suppress warnings during test runs. - `--cov=src`: Enable coverage analysis for the `src` directory. - `--cov-report=term-missing`: Show uncovered lines in terminal output. - `--cov-report=html`: Generate HTML coverage reports. - Updated `filterwarnings` to maintain `DeprecationWarning` suppression. Improves test clarity, coverage insights, and reduces noise during test execution.
1 parent 0c6c523 commit 4e81f60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pytest.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[pytest]
22
pythonpath = pose
3-
addopts = --tb=short
3+
testpaths = tests
4+
addopts = --tb=short --maxfail=1 --disable-warnings --cov=src --cov-report=term-missing --cov-report=html
45
filterwarnings =
5-
ignore::DeprecationWarning
6+
ignore::DeprecationWarning

0 commit comments

Comments
 (0)