A pytest plugin to generate JSON reports, with ATX support.
Project description
pytest-test-guide-json
A Python package to convert pytest test results into a JSON format compatible with test.guide by TraceTronic.
📘 Overview
test.guide by TraceTronic is a powerful tool for managing and analyzing automated test results. However, it does not natively support pytest output.
This package bridges the gap by:
- Collecting test results from
pytest - Converting them into a structured JSON format
- Ensuring full compatibility with test.guide’s expected JSON schema
🚀 Features
- Easy integration with existing
pytesttest suites - Generates test.guide-compatible JSON reports
- Captures test case hierarchy, verdicts (
PASSED,FAILED,ERROR,INCONCLUSIVE, etc.), durations, and more - Supports nested folder/test structures for proper grouping in test.guide
🧪 Example Usage
- Install the package:
pip install test-guide-pytest-json
- Create a .env file in the root of your project to store metadata:
PROJECT_NAME=my_project
ECU_NAME=my_ecu
ECU_VERSION=0.0.1
- Run your tests with pytest:
# Generate timestamped file in the project root
pytest --json
# Generate report at a custom path
pytest --json some/path/report.json
# Short option
pytest -J some/path/report.json
# Run tests normally (no report generated)
pytest
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file test_guide_pytest_json-0.0.9.tar.gz.
File metadata
- Download URL: test_guide_pytest_json-0.0.9.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
066ead4da30464bd3e0f4de607e3242907f8fa897bcab21b97ed87e5fd2cf6da
|
|
| MD5 |
58a7b895b56dd8c477a89f5efca94827
|
|
| BLAKE2b-256 |
bae8fc63a47124c467a23cb1529a614c131a877302a769cf2efde26c9646db1c
|
Provenance
The following attestation bundles were made for test_guide_pytest_json-0.0.9.tar.gz:
Publisher:
python-publish.yml on tpc8486/test_guide_pytest_json
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
test_guide_pytest_json-0.0.9.tar.gz -
Subject digest:
066ead4da30464bd3e0f4de607e3242907f8fa897bcab21b97ed87e5fd2cf6da - Sigstore transparency entry: 194040959
- Sigstore integration time:
-
Permalink:
tpc8486/test_guide_pytest_json@a6561b23cc8954bb4e23692829ad79459e4b216b -
Branch / Tag:
refs/tags/0.0.9 - Owner: https://github.com/tpc8486
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@a6561b23cc8954bb4e23692829ad79459e4b216b -
Trigger Event:
release
-
Statement type:
File details
Details for the file test_guide_pytest_json-0.0.9-py3-none-any.whl.
File metadata
- Download URL: test_guide_pytest_json-0.0.9-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4640774233a3785b77b421796c3e52a6a0cb72045ba484776813562bd1be364b
|
|
| MD5 |
11850bedb5f4932b9e653a637327226a
|
|
| BLAKE2b-256 |
26c0ec5776196830d83e008716678d25f56991ea1b9e5ad587d01291a8d2576f
|
Provenance
The following attestation bundles were made for test_guide_pytest_json-0.0.9-py3-none-any.whl:
Publisher:
python-publish.yml on tpc8486/test_guide_pytest_json
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
test_guide_pytest_json-0.0.9-py3-none-any.whl -
Subject digest:
4640774233a3785b77b421796c3e52a6a0cb72045ba484776813562bd1be364b - Sigstore transparency entry: 194040962
- Sigstore integration time:
-
Permalink:
tpc8486/test_guide_pytest_json@a6561b23cc8954bb4e23692829ad79459e4b216b -
Branch / Tag:
refs/tags/0.0.9 - Owner: https://github.com/tpc8486
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@a6561b23cc8954bb4e23692829ad79459e4b216b -
Trigger Event:
release
-
Statement type: