Skip to main content

pytest-nijam

pytest plugin for Nijam, captures your test runs and ships them to the Nijam dashboard so you can track what failed, why, and where (error log + failing line), across CI runs and over time.

pytest has no traces, so, unlike the Playwright reporter, runs won't include a trace viewer. Everything else (failures, error output, the failing line, durations, and your test source) is captured.

Install

pip install pytest-nijam

The plugin auto-activates once installed (via pytest's pytest11 entry point).

Configure

Add your project ID to pytest.ini (or pyproject.toml), and provide the ingest API key via an environment variable (it's a secret, keep it out of source control):

# pytest.ini
[pytest]
nijam_project_id = 00000000-0000-0000-0000-000000000000
# pyproject.toml
[tool.pytest.ini_options]
nijam_project_id = "00000000-0000-0000-0000-000000000000"
export NIJAM_API_KEY="nij_sk_…"   # from the Nijam dashboard → Secret keys
pytest

Both the project ID and the API key can come from either the ini file or an environment variable; the environment variable wins when both are set.

Options

ini option env var default what it does
nijam_api_key NIJAM_API_KEY , Ingest API key (required).
nijam_project_id NIJAM_PROJECT_ID , Project UUID (required).
nijam_api_url NIJAM_API_URL https://api.nijam.dev API base URL.
nijam_environment NIJAM_ENVIRONMENT , Free-form environment tag (e.g. staging).
nijam_upload_source , true Upload each test file's source so the dashboard can show it.
nijam_auto_complete NIJAM_AUTO_COMPLETE true Finalize the run when this process ends. Set false for fan-out.
nijam_silent , false Suppress [nijam] log lines.

If nijam_api_key or nijam_project_id is missing, the plugin disables itself with a single warning, your tests run exactly as before.

CI metadata

Run context (commit, branch, PR number, CI provider/run URL, commit author) is detected automatically from GitHub Actions, GitLab CI, CircleCI, Bitbucket Pipelines, or generic GIT_* env vars, falling back to git itself. No configuration needed.

Fan-out across CI jobs

If you split your suite across several CI jobs (e.g. one job per test path) that all feed one Nijam run, set nijam_auto_complete = false (or NIJAM_AUTO_COMPLETE=false) on each job so none of them finalizes early, then complete the run once from a post-matrix step. See the docs.

Guarantees

This plugin never breaks your test run. Every hook is fail-soft: a network error, a bad key, or an unreachable API produces a [nijam] warning and nothing more, your tests still pass or fail on their own merits.

License

MIT

Metadata

Release files for pytest-nijam 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-nijam 0.1.2
File Size Uploaded Provenance Actions
pytest_nijam-0.1.2.tar.gz 19.7 kB With provenance Details for pytest_nijam-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytest-nijam 0.1.2
File Interpreter ABI Platform Actions
pytest_nijam-0.1.2-py3-none-any.whl Python 3 none any Details for pytest_nijam-0.1.2-py3-none-any.whl

Total release size: 38.4 kB

Release files / pytest_nijam-0.1.2.tar.gz

Download URL pytest_nijam-0.1.2.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
db7214b08abb9f5f804a5810fffbf091e1ad2d93104b33f5e5ac23ee6814fbb8
BLAKE2b-256 checksum
How to use checksums
2edec7f626904a9432a86ff28d8777af3d50f010945532999d83b57de4fee7a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 8, 2026.

Transparency log

Release files / pytest_nijam-0.1.2-py3-none-any.whl

Download URL pytest_nijam-0.1.2-py3-none-any.whl
Size 18.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e413a4c9645788233c4c5c75880b5c210db3ace68f4b1d35e15ae661cbc15dc
BLAKE2b-256 checksum
How to use checksums
e71cb83dc52cafeb97f3297a14b6ae049c43572154dbeb2135959856e97b11ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 8, 2026.

Transparency log

Security for pytest-nijam 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pytest_nijam-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page