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.7.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.7-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: test_guide_pytest_json-0.0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 f12a78a9f0e7b92603c5140b3cc80ef46e8c793e86cfc06ae1c02d050abb7dcd
MD5 2f8b37a3ae93af2dbc177bc26d6a1a9e
BLAKE2b-256 b71ba0725e5999ede5e0c6924c3a6403ac7790278ecccfb0178b32e447cd35d0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for test_guide_pytest_json-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e8422201e4f5413f44bd5489441920a5fe215d812cc7e016d36633f25e769e57
MD5 29aecbe7e2d5d2a7197997419efa694b
BLAKE2b-256 e6528db643a57cf5d3ae4e4551fa52b261bd5fbb7e2e9d16bb6b3d4e81515fa3

See more details on using hashes here.

Provenance

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