Skip to main content

otr-ctrf-bridge

Bidirectional converter between Open Test Reporting (OTR) and CTRF test report formats. Zero runtime dependencies; Python ≥3.9.

Usage

pip install otr-ctrf-bridge
otr-ctrf otr2ctrf events.xml -o ctrf-report.json
otr-ctrf ctrf2otr ctrf-report.json -o events.xml

Status mapping

OTR CTRF rawStatus kept
SUCCESSFUL passed
SKIPPED skipped
FAILED failed
ERRORED failed ERRORED
ABORTED failed ABORTED
CTRF OTR
passed SUCCESSFUL
skipped SKIPPED
pending SKIPPED
failed FAILED
other FAILED

Validation

  • CTRF output: validated against the official CTRF JSON schema (vendored in tests)
  • OTR output: validated with the official OTR CLI (java -jar open-test-reporting-cli.jar validate)

Development

pip install -e ".[test]"
python -m pytest tests/

License

Apache-2.0. Formats belong to their respective projects: OTR (JUnit team) and CTRF (ctrf-io).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

otr_ctrf_bridge-0.1.0.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

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

otr_ctrf_bridge-0.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file otr_ctrf_bridge-0.1.0.tar.gz.

File metadata

  • Download URL: otr_ctrf_bridge-0.1.0.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.7

File hashes

Hashes for otr_ctrf_bridge-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e9ce600a8767f13d6bab24218b19212a98445c382c0b22985c94cfcd1a83e71b
MD5 3f2189470be3457ffb146afde2c261d9
BLAKE2b-256 4e2fd4731db9af9a1b1d702e912a20c76e5ce7c194e696a3185f45f17d442a9f

See more details on using hashes here.

File details

Details for the file otr_ctrf_bridge-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for otr_ctrf_bridge-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98d22434af1fba8ff41fea067a851460a89d2e9654bf2e72ac7a37427ca91f09
MD5 6ff25cc337eea38762739151d7b8c944
BLAKE2b-256 ebc9693c5545d831340136c84fe8c3f0168bd75b72683ce4f4c233ec49407b90

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page