pytest-integration
Organizing pytests by integration or not
Decision gist · record as of 2026-08-14
Yes, if you have an existing pytest suite and want to organize tests by tier with minimal setup. No, if you need active maintenance or support for the latest pytest features—the package is abandoned and has not been updated since 2023. Consider it stable for simple use cases but risky for projects that upgrade pytest frequently or need ongoing compatibility fixes.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires pytest to be installed; designed for Python 3.6+.
- Low friction installation with no runtime dependencies.
- However, the package is abandoned—last release was 1366 days ago with no commits since 2023-04-07.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) places no restrictions on use, modification, or distribution.
last release 2022-11-17 (1366 days) · last repo commit 2023-04-07 · 25 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 273,440 downloads/mo, #8,200 on PyPI
Alternatives
Verify before relying
pip install pytest-integration
# In your test file:
import pytest
@pytest.mark.integration_test
def test_api_call():
pass
@pytest.mark.slow_integration_test
def test_database_sync():
pass
# Run with: pytest --with-integration --with-slow-integration- Whether the plugin works reliably with recent pytest versions (last tested in 2023).
- Compatibility with modern pytest-cov versions and whether coverage exclusion still functions as documented.
- Behavior under xdist with current pytest-xdist releases and whether the documented limitation still applies.
What it is and what it does
pytest-integration is a pytest plugin that adds markers and command-line options to organize tests into three tiers: unit tests, integration tests, and slow integration tests. It enforces a sequential execution order—unit tests run first, then integration tests only if all units pass, then slow integration tests only if integration tests pass. This prevents wasting time on expensive integration tests when the codebase has basic failures. If pytest-cov is installed, the plugin automatically disables coverage reporting for integration tests, since unit tests are expected to provide full coverage.
The plugin adds two markers (`@pytest.mark.integration_test` and `@pytest.mark.slow_integration_test`) and three command-line flags (`--with-integration`, `--with-slow-integration`, and `--integration-cover`) to control which tiers run and whether integration tests contribute to coverage. It has no runtime dependencies beyond pytest itself, making it lightweight to add to an existing test suite.
Use it for
- Separate unit tests from integration tests in a CI/CD pipeline to fail fast on logic errors before running expensive external-service tests.
- Mark database or API tests as slow integration tests to run them last, only when quick tests pass.
- Disable coverage collection for integration tests to keep coverage reports focused on unit-test coverage.
- Organize a large test suite where some tests require external services or take significant time to run.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you have an existing pytest suite and want to organize tests by tier with minimal setup.
No, if you need active maintenance or support for the latest pytest features—the package is abandoned and has not been updated since 2023. Consider it stable for simple use cases but risky for projects that upgrade pytest frequently or need ongoing compatibility fixes.
Install
pytest-integration on PyPI
Before you install
Low friction installation with no runtime dependencies. However, the package is abandoned—last release was 1366 days ago with no commits since 2023-04-07. It still supports current Python versions but receives no maintenance.
Requires pytest to be installed; designed for Python 3.6+.
License in practice
MIT license (permissive) places no restrictions on use, modification, or distribution.
Quickstart
pip install pytest-integration
# In your test file:
import pytest
@pytest.mark.integration_test
def test_api_call():
pass
@pytest.mark.slow_integration_test
def test_database_sync():
pass
# Run with: pytest --with-integration --with-slow-integration
Verify before relying
- Whether the plugin works reliably with recent pytest versions (last tested in 2023).
- Compatibility with modern pytest-cov versions and whether coverage exclusion still functions as documented.
- Behavior under xdist with current pytest-xdist releases and whether the documented limitation still applies.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,366 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 273,440 / month, #8,200 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Framework :: PytestLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: pytest_integration-0.2.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pytest integration test markers”
- pytest-integrationA pytest plugin that organizes tests into unit, integration, and slow…
- pytest-testrailA pytest plugin that integrates test execution with TestRail,…
- pytest-skip-markersA pytest plugin that provides skip markers to conditionally skip…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also pytest-fail-slow · pytest-describe · pytest-skip-markers · pytest-order · pytest-dependency · pytest-cover · pytest-mpi · pytest-ordering · pytest-cov · pytest-incremental