{"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,"search_vec":"'0.2.0':31 'automat':9 'barbora':34 'base':14 'current':29 'custom':16 'data':35 'exclud':22 'includ':23 'integr':3,13,27,41 'integration-test':40 'maintain':32 'mark':4,10 'marker':17 'option':20 'plugin':7,38 'provid':19 'pytest':2,6,37 'pytest-integration-mark':1 'run':25 'scienc':36 'test':11,28,39,42 'version':30","created_at":"2026-05-01T08:13:01.752355+00:00","updated_at":"2026-05-01T08:13:01.752355+00:00","problems":{"verify_error":"no import statement found"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.2.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/Barbora-Data-Science/pytest-integration-mark","docs":null,"changelog":null,"pypi":"https://pypi.org/project/pytest-integration-mark/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"skip","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-06","install_tag":null}}