{"id":24428,"library":"pytest-func-cov","title":"pytest-func-cov","description":"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.","status":"active","version":"0.2.3","language":"python","source_language":"en","source_url":"https://github.com/radug0314/pytest_func_cov","tags":["pytest","plugin","coverage","function-coverage"],"install":[{"cmd":"pip install pytest-func-cov","lang":"bash","label":"Latest stable"}],"dependencies":[{"reason":"Required plugin framework","package":"pytest","optional":false}],"imports":[{"note":"The package is installed as a pytest plugin; import the module directly if needed for advanced usage.","symbol":"pytest_func_cov","correct":"import pytest_func_cov"}],"quickstart":{"code":"# Install: pip install pytest-func-cov\n# Then run pytest with --func-cov flag\n# Example usage in a test file:\ndef test_example():\n    assert 1 + 1 == 2\n\n# Run: pytest --func-cov test_example.py","lang":"python","description":"Install the plugin and run pytest with the --func-cov flag to generate function coverage report."},"warnings":[{"fix":"Switch to pytest-cov (pip install pytest-cov) for active maintenance and broader support.","message":"The package has not been updated since 2021. Consider using pytest-cov for more comprehensive coverage.","severity":"deprecated","affected_versions":">=0.2.3"},{"fix":"Upgrade to 0.2.3 or ensure __init__.py is imported before other modules.","message":"Plugin requires specific import order; not importing a package's __init__.py first may cause circular dependency errors.","severity":"gotcha","affected_versions":"<=0.2.1"},{"fix":"Update any output parsing to match pytest-cov style.","message":"In version 0.2.0, the console output format changed to align with pytest-cov. Scripts parsing coverage output may break.","severity":"breaking","affected_versions":">=0.2.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install pytest-func-cov' to install the plugin.","cause":"Package not installed or installed incorrectly.","error":"ModuleNotFoundError: No module named 'pytest_func_cov'"},{"fix":"Upgrade pytest-func-cov to 0.2.3 using 'pip install --upgrade pytest-func-cov'.","cause":"Circular dependency due to wrong import order (common in versions <=0.2.1).","error":"ImportError: cannot import name 'pytest_func_cov' from partially initialized module"},{"fix":"Use the plugin with pytest command-line: 'pytest --func-cov'.","cause":"Trying to use the plugin as a regular module instead of via pytest CLI.","error":"AttributeError: module 'pytest_func_cov' has no attribute 'run'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}