Registry / devops / testit-adapter-pytest

testit-adapter-pytest

JSON →
library4.2.5.post570pypypiunverified

A pytest plugin that integrates with Test IT TMS, allowing automatic test result uploads, parameterized tests, and test work item linking. Current version 4.2.5, actively maintained.

pip install testit-adapter-pytest
INSTALL
IMPORT
SIG · TESTIT-ADAPTER-PYT
T
testit-adapter-pytest
devopspythonv4.2.5.post570
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

Configuration
✓ from testit_adapter_pytest import Configuration
✗ from testit_adapter_pytest.config import Configuration

Basic test with Test IT adapter, linking test case via external ID. Run with `pytest --testit`.

import pytest import os # Configure adapter via environment variables or conftest.py os.environ['TESTIT_URL'] = 'https://your-instance.testit.software' os.environ['TESTIT_PRIVATE_TOKEN'] = 'your_api_token' os.environ['TESTIT_PROJECT_ID'] = 'project_id' os.environ['TESTIT_ADAPTER_MODE'] = 'adapter' # Optional: link test to a work item @pytest.mark.testit(external_id='test-case-1') def test_example(): assert 1 + 1 == 2 # Run tests: pytest --testit
Debug
Known issues
breakingIn v4.x, the pytest marker changed from `@pytest.mark.testit_case` to `@pytest.mark.testit`. Existing tests must be updated.
fix
Replace `@pytest.mark.testit_case('id')` with `@pytest.mark.testit(external_id='id')`.
affects: >=4.0.0
breakingThe `TESTIT_PRIVATE_TOKEN` environment variable is now required instead of `TESTIT_TOKEN`. The old variable name is ignored in v4.x.
fix
Rename `TESTIT_TOKEN` to `TESTIT_PRIVATE_TOKEN`.
affects: >=4.0.0
gotchaAdapter mode must be set via `TESTIT_ADAPTER_MODE=adapter` (or other modes) before importing tests. Unset mode causes connection errors.
fix
Set environment variable before test discovery: `export TESTIT_ADAPTER_MODE=adapter`.
affects: all
Upgrade
Version history
4.2.5.post570latest on PyPI · released May 29, 2026
Audit
Dependencies
pytestrequiredCore testing framework required
requestsrequiredHTTP communication with Test IT API
Agent activity
12 hits · last 30 days
node
10
Resources
testit-adapter-pytest — pip install testit-adapter-pytest · libregistry