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

Uploaded Python 3

File details

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

File metadata

  • Download URL: test_guide_pytest_json-0.0.10.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.10.tar.gz
Algorithm Hash digest
SHA256 59479d5222bf04e3c679377cbc39c5fea38cca77986049f458bf507f92d29b2c
MD5 9f2dcbff209927c036cc440d1d7fef08
BLAKE2b-256 e6019fc6463c9c377b85a4cebad9b0fc665c1a04916d057e1c9694ea8cc18993

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for test_guide_pytest_json-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 93b4533125dd9c5c982ac5fc790edbd948f4d3590f856465e888b9bfed4564ba
MD5 d7f244fc3ff0fa6a587e851d4247a3cc
BLAKE2b-256 e69447be358545ef511a881fe86638501155630ef498a8dc3852762ceda50fb7

See more details on using hashes here.

Provenance

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