Registry / testing / pytest-integration-mark

pytest-integration-mark

JSON →
library0.2.0pypypiunverified

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.

pip install pytest-integration-mark
INSTALL
IMPORT
SIG · PYTEST-INTEGRATION
P
pytest-integration-mark
testingpythonv0.2.0
Install
2.7s avg
Import
—
Disk
29MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.2.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 30.8MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 2.7s · import 0.000s · 31MB
29MB installed
● package 29MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pytest_configure
✓ def pytest_configure(config): ...
✗ from pytest_integration_mark import ...
This plugin is automatically activated when installed; no explicit import needed.

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.

# In conftest.py or test file import pytest # Mark a test as integration @pytest.mark.integration def test_my_integration(): assert True # Run only integration tests: pytest -m integration # Exclude integration tests: pytest --no-integration # Only integration tests: pytest --only-integration
Debug
Known issues
gotchaThe 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.
fix
Use unique marker names for different purposes, or configure the plugin to ignore certain markers.
affects: >=0.1.0
gotchaIf 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.
fix
Apply the marker directly to each test function, or use pytest.mark.parametrize with the marker separately.
affects: >=0.1.0
deprecatedThe plugin is very stable and no deprecations are known for version 0.2.0.
fix
None
affects: 0.2.0
Upgrade
Version history
0.2.0latest on PyPI · released May 22, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
Bingbot
1
Resources
pytest-integration-mark — pip install pytest-integration-mark · libregistry