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 -X) - 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 -X 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.8.tar.gz (6.2 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.8-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file test_guide_pytest_json-0.0.8.tar.gz.

File metadata

  • Download URL: test_guide_pytest_json-0.0.8.tar.gz
  • Upload date:
  • Size: 6.2 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.8.tar.gz
Algorithm Hash digest
SHA256 9cdedfead050a57744979d34ad28371e1f8bbf49beb01cdcdf2929c03a41e0ff
MD5 6f8675d0524bdb6687ba36d83afe8a80
BLAKE2b-256 4a52061cceea2e1db3deeddbadf6e7a9a23e204bd5d268dcd3fad291768aa12a

See more details on using hashes here.

Provenance

The following attestation bundles were made for test_guide_pytest_json-0.0.8.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.8-py3-none-any.whl.

File metadata

File hashes

Hashes for test_guide_pytest_json-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3344eb077696ff17f39932f08f3c420f3c67daae4bd66cc611e01d2c656bc3fb
MD5 6d9e010aa2c237b506f4a8320b0a0c74
BLAKE2b-256 612b8f9747e44e298071dd643391ae2ece285a42886ffc39f0feb265967ac843

See more details on using hashes here.

Provenance

The following attestation bundles were made for test_guide_pytest_json-0.0.8-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