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
- Run your tests with the JSON report option:
The following items are now required when you call --json:
--json(or-j) - The path to the JSON report file. If not specified, a timestamped file will be created in the current working directory.--project-name(or-p) - The name of the project--ecu-name(or-e) - The name of the ECU--ecu-version(or-v) - The version of the ECU
# Timestamped file in default path with specific tests
pytest ./tests/ --json
# Custom path
pytest --json some/path/report.json
# Timestamped file in project root
pytest --json --project-name my_project --ecu-name my_ecu --ecu-version 0.0.1
# Short options
pytest -j some/path/report.json -p my_project -e my_ecu -v 0.0.1
# No JSON report (unless specified in pytest.ini)
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.6.tar.gz.
File metadata
- Download URL: test_guide_pytest_json-0.0.6.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81b4a5ac82d858656c0a8f702b299c9a36a83efb9626a76c52c7d9ce0460cb54
|
|
| MD5 |
247bc6ba718a09391c1a079fb120ff32
|
|
| BLAKE2b-256 |
e89754a65c8e20e4294d45dea0d2fd8bdb8898fcd645d1376afa1eee26018d78
|
Provenance
The following attestation bundles were made for test_guide_pytest_json-0.0.6.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.6.tar.gz -
Subject digest:
81b4a5ac82d858656c0a8f702b299c9a36a83efb9626a76c52c7d9ce0460cb54 - Sigstore transparency entry: 193556801
- Sigstore integration time:
-
Permalink:
tpc8486/test_guide_pytest_json@7b953ae80508a5e97b9a0988c56994f0ab9fee43 -
Branch / Tag:
refs/tags/0.0.6 - Owner: https://github.com/tpc8486
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@7b953ae80508a5e97b9a0988c56994f0ab9fee43 -
Trigger Event:
release
-
Statement type:
File details
Details for the file test_guide_pytest_json-0.0.6-py3-none-any.whl.
File metadata
- Download URL: test_guide_pytest_json-0.0.6-py3-none-any.whl
- Upload date:
- Size: 7.3 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 |
e1fb3c7b8f3f2de8a4711c0da2a922f6c9a846fe91fc8aecef3973d6f967b82f
|
|
| MD5 |
bb19e7e49371416ab1fbc108eade8e68
|
|
| BLAKE2b-256 |
52e6c28dc8e0dd48325bb5725aad47bcce98529ca6f9636e850ab374206b9be3
|
Provenance
The following attestation bundles were made for test_guide_pytest_json-0.0.6-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.6-py3-none-any.whl -
Subject digest:
e1fb3c7b8f3f2de8a4711c0da2a922f6c9a846fe91fc8aecef3973d6f967b82f - Sigstore transparency entry: 193556804
- Sigstore integration time:
-
Permalink:
tpc8486/test_guide_pytest_json@7b953ae80508a5e97b9a0988c56994f0ab9fee43 -
Branch / Tag:
refs/tags/0.0.6 - Owner: https://github.com/tpc8486
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@7b953ae80508a5e97b9a0988c56994f0ab9fee43 -
Trigger Event:
release
-
Statement type: