Skip to main content

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 pytest test 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

  1. Install the package:
pip install test-guide-pytest-json
  1. 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

test_guide_pytest_json-0.0.6.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

test_guide_pytest_json-0.0.6-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

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

Hashes for test_guide_pytest_json-0.0.6.tar.gz
Algorithm Hash digest
SHA256 81b4a5ac82d858656c0a8f702b299c9a36a83efb9626a76c52c7d9ce0460cb54
MD5 247bc6ba718a09391c1a079fb120ff32
BLAKE2b-256 e89754a65c8e20e4294d45dea0d2fd8bdb8898fcd645d1376afa1eee26018d78

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file test_guide_pytest_json-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for test_guide_pytest_json-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e1fb3c7b8f3f2de8a4711c0da2a922f6c9a846fe91fc8aecef3973d6f967b82f
MD5 bb19e7e49371416ab1fbc108eade8e68
BLAKE2b-256 52e6c28dc8e0dd48325bb5725aad47bcce98529ca6f9636e850ab374206b9be3

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page