{"id":20915,"library":"allure-pytest-default-results","title":"Allure Pytest Default Results","description":"Generates default 'unknown' results for Allure Report when test cases are not executed (e.g., skipped by markers or filters). Version 0.1.4, stable with no active development; useful for CI pipelines where test selection may miss some scenarios.","status":"active","version":"0.1.4","language":"python","source_language":"en","source_url":"https://github.com/pathikrit/allure-pytest-default-results","tags":["allure","pytest","reporting","test-results","default"],"install":[{"cmd":"pip install allure-pytest-default-results","lang":"bash","label":"Standard install"}],"dependencies":[{"reason":"The plugin generates results for Allure; pytest-allure must be installed and configured.","package":"allure-pytest","optional":false},{"reason":"Testing framework required to run tests and hooks.","package":"pytest","optional":false}],"imports":[{"note":"The plugin is a pytest plugin; import the module directly to access helper functions if needed, but typically it auto-registers via conftest.","wrong":"import allure_default_results","symbol":"allure_default_results","correct":"from allure_pytest_default_results import allure_default_results"}],"quickstart":{"code":"# conftest.py\nimport pytest\nimport allure\nfrom allure_pytest_default_results import allure_default_results\n\n# The plugin automatically generates default results for tests that are not executed.\n# To see it in action, run pytest with filtered tests:\n# pytest --alluredir=allure-results -k \"not test_example\"\n\ndef test_example():\n    allure.attach(\"sample\", name=\"test\", attachment_type=allure.attachment_type.TEXT)\n    assert True\n","lang":"python","description":"Basic usage: install and run pytest as usual; the plugin hooks into collection to generate 'unknown' results for skipped tests."},"warnings":[{"fix":"Ensure you understand collection vs. selection. Use `--co` (collect only) to verify which tests are collected.","message":"The plugin does NOT generate results for tests that are deselected by markers (`-m`) or keywords (`-k`) but were collected; it only handles tests that are completely not collected (e.g., due to `--run-no` or non-matching patterns).","severity":"gotcha","affected_versions":"all"},{"fix":"Make sure the plugin is installed and registered (check `pytest --traceconfig` for `allure-pytest-default-results`).","message":"If you have multiple conftest.py files with conflicting plugin registrations, the default results may not be generated. The plugin must be loaded before any test collection.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run `pip install allure-pytest-default-results` and verify with `pip list | grep allure`.","cause":"The package is not installed or the environment is wrong.","error":"ModuleNotFoundError: No module named 'allure_pytest_default_results'"},{"fix":"Install `allure-pytest` separately: `pip install allure-pytest`.","cause":"Missing `allure-pytest` dependency, not the default results plugin.","error":"pytest: error: unrecognized arguments: --alluredir"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}