--8<-- "pytest.ini"--cov=.- Measure coverage for the current directory.
--cov-branch- Measure branch coverage.
--cov-fail-under=75- Fail if the coverage is less than 75%.
--cov-report=html- Generate an HTML report.
--cov-report=term-missing- Show missing lines in the terminal.
--import-mode=importlib- Use importlib to import modules. It is recommended
Ignore directories or files that match the following patterns:
.*__pycache__htmlcov
Path specified here will be added to sys.path before running the tests.
Only files that match the pattern test__*.py will be considered as test files.
It is recommended to reduce the number of files that pytest has to scan.
Only the tests directory will be considered for running the tests.
It is recommended to reduce the number of directories that pytest has to scan.
VS Code discovers tests in tests/ with pytest through the python.testing.* keys in .vscode/settings.json (see VS Code Settings for the full file).