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. 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
  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

test_guide_pytest_json-0.0.9.tar.gz (6.1 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.9-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

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

Hashes for test_guide_pytest_json-0.0.9.tar.gz
Algorithm Hash digest
SHA256 066ead4da30464bd3e0f4de607e3242907f8fa897bcab21b97ed87e5fd2cf6da
MD5 58a7b895b56dd8c477a89f5efca94827
BLAKE2b-256 bae8fc63a47124c467a23cb1529a614c131a877302a769cf2efde26c9646db1c

See more details on using hashes here.

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

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.9-py3-none-any.whl.

File metadata

File hashes

Hashes for test_guide_pytest_json-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 4640774233a3785b77b421796c3e52a6a0cb72045ba484776813562bd1be364b
MD5 11850bedb5f4932b9e653a637327226a
BLAKE2b-256 26c0ec5776196830d83e008716678d25f56991ea1b9e5ad587d01291a8d2576f

See more details on using hashes here.

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

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