Registry / testing / pytest-func-cov

pytest-func-cov

JSON →
library0.2.3pypypi✓ verified 86d ago

Pytest plugin for measuring function coverage, tracking which functions are called during tests. Current version 0.2.3, requires Python >=3.6. Development appears to be low-cadence with sporadic releases.

pip install pytest-func-cov
INSTALL
IMPORT
SIG · PYTEST-FUNC-COV
P
pytest-func-cov
testingpythonv0.2.3
Install
2.6s avg
Import
Disk
29MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.2.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 30.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.6s · import 0.000s · 31MB
29MB installed
● package 29MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pytest_func_cov
import pytest_func_cov
The package is installed as a pytest plugin; import the module directly if needed for advanced usage.

Install the plugin and run pytest with the --func-cov flag to generate function coverage report.

# Install: pip install pytest-func-cov # Then run pytest with --func-cov flag # Example usage in a test file: def test_example(): assert 1 + 1 == 2 # Run: pytest --func-cov test_example.py
Debug
Known issues
deprecatedThe package has not been updated since 2021. Consider using pytest-cov for more comprehensive coverage.
fix
Switch to pytest-cov (pip install pytest-cov) for active maintenance and broader support.
affects: >=0.2.3
gotchaPlugin requires specific import order; not importing a package's __init__.py first may cause circular dependency errors.
fix
Upgrade to 0.2.3 or ensure __init__.py is imported before other modules.
affects: <=0.2.1
breakingIn version 0.2.0, the console output format changed to align with pytest-cov. Scripts parsing coverage output may break.
fix
Update any output parsing to match pytest-cov style.
affects: >=0.2.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'pytest_func_cov'
Package not installed or installed incorrectly.
fix
Run 'pip install pytest-func-cov' to install the plugin.
ImportError: cannot import name 'pytest_func_cov' from partially initialized module
Circular dependency due to wrong import order (common in versions <=0.2.1).
fix
Upgrade pytest-func-cov to 0.2.3 using 'pip install --upgrade pytest-func-cov'.
AttributeError: module 'pytest_func_cov' has no attribute 'run'
Trying to use the plugin as a regular module instead of via pytest CLI.
fix
Use the plugin with pytest command-line: 'pytest --func-cov'.
Upgrade
Version history
0.2.3latest on PyPI · released Apr 15, 2021
Audit
Dependencies
pytestrequiredRequired plugin framework
Agent activity
14 hits · last 30 days
node
12
Resources
pytest-func-cov — pip install pytest-func-cov · libregistry