{"id":24429,"library":"pytest-integration-mark","title":"pytest-integration-mark","description":"A pytest plugin that automatically marks tests with 'integration' based on custom markers and provides options to exclude, include, or run only integration tests. Current version: 0.2.0. Maintained by Barbora Data Science.","status":"active","version":"0.2.0","language":"python","source_language":"en","source_url":"https://github.com/Barbora-Data-Science/pytest-integration-mark","tags":["pytest","plugin","testing","integration-tests"],"install":[{"cmd":"pip install pytest-integration-mark","lang":"bash","label":"PyPI install"}],"dependencies":[],"imports":[{"note":"This plugin is automatically activated when installed; no explicit import needed.","wrong":"from pytest_integration_mark import ...","symbol":"pytest_configure","correct":"def pytest_configure(config): ..."}],"quickstart":{"code":"# In conftest.py or test file\nimport pytest\n\n# Mark a test as integration\n@pytest.mark.integration\ndef test_my_integration():\n    assert True\n\n# Run only integration tests: pytest -m integration\n# Exclude integration tests: pytest --no-integration\n# Only integration tests: pytest --only-integration","lang":"python","description":"To use, simply add @pytest.mark.integration to your tests. Then run pytest with --no-integration to skip them, or --only-integration to run only integration tests."},"warnings":[{"fix":"Use unique marker names for different purposes, or configure the plugin to ignore certain markers.","message":"The plugin automatically treats any test with a marker named 'integration' (including custom markers like @pytest.mark.integration) as an integration test. Ensure you don't have unrelated markers named 'integration' that might be picked up unintentionally.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Apply the marker directly to each test function, or use pytest.mark.parametrize with the marker separately.","message":"If you use @pytest.mark.integration with parameters, the marker must be directly on the test function, not on a class or module level, for the plugin to recognize it.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"None","message":"The plugin is very stable and no deprecations are known for version 0.2.0.","severity":"deprecated","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":"Ensure pytest and pytest-integration-mark are installed: pip install pytest pytest-integration-mark","cause":"The plugin is not an importable module; it's a pytest plugin loaded via entry points. No direct import exists.","error":"ModuleNotFoundError: No module named 'pytest_integration_mark'"},{"fix":"Ensure the plugin is installed and listed in pytest's plugins or installed as a package. Run pytest with -p pytest_integration_mark to force loading.","cause":"pytest may ignore custom markers if they are not registered; the plugin registers the marker automatically, but this warning appears if the marker is used before loading the plugin.","error":"WARNING: Ignored the following markers in the test file: integration"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}