{"id":28108,"library":"pytest-custom-report","title":"pytest-custom-report","description":"A pytest plugin to configure the symbols displayed for test outcomes (e.g., . and F). Version 1.0.1 supports pytest 4.2.0+, where xfail was renamed to XFAIL. Low-maintenance library with no recent releases.","status":"maintenance","version":"1.0.1","language":"python","source_language":"en","source_url":"https://github.com/wimglenn/pytest-custom-report","tags":["pytest","plugin","testing","reporting"],"install":[{"cmd":"pip install pytest-custom-report","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Plugin requires pytest to run","package":"pytest","optional":false}],"imports":[{"note":"Plugin is auto-discovered, no explicit import needed","wrong":"","symbol":"pytest","correct":"import pytest"}],"quickstart":{"code":"# conftest.py\nimport pytest\n\ndef pytest_custom_report(short, long):\n    # Customize symbols\n    return {\n        'PASSED': short and '.' or 'PASS',\n        'FAILED': short and 'F' or 'FAIL',\n    }","lang":"python","description":"Define a pytest_custom_report hook in conftest.py to override default symbols."},"warnings":[{"fix":"If you relied on the old 'xfail' symbol, update your custom report or accept the new default 'XFAIL'.","message":"Renamed 'xfail' to 'XFAIL' in default output to match pytest v4.2.0. This changes the default symbols for expected failures.","severity":"breaking","affected_versions":"v1.0.0 -> v1.0.1"},{"fix":"Implement your own per-test logic if needed by inspecting the test item (not directly supported).","message":"The plugin does not support per-test symbols; the hook function receives 'short' and 'long' booleans that determine the detail level, not individual test names.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider alternatives like pytest-custom-report or maintaining a fork.","message":"The plugin is not actively maintained; no commits since 2019. It may break with future pytest versions.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run 'pip install pytest-custom-report'","cause":"Plugin not installed in the current environment.","error":"ModuleNotFoundError: No module named 'pytest_custom_report'"},{"fix":"Remove any --custom-report arguments and define the pytest_custom_report hook in conftest.py.","cause":"The plugin does not define any command-line flags; configuration is done via the hook function.","error":"pytest: error: unrecognized arguments: --custom-report"},{"fix":"Ensure your hook returns a dict with correct outcome keys.","cause":"Return value from pytest_custom_report must be a dict with keys matching the standard outcomes (e.g., 'PASSED', 'FAILED').","error":"Failed: could not create report: 'PASSED'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}