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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9ce600a8767f13d6bab24218b19212a98445c382c0b22985c94cfcd1a83e71b
|
|
| MD5 |
3f2189470be3457ffb146afde2c261d9
|
|
| BLAKE2b-256 |
4e2fd4731db9af9a1b1d702e912a20c76e5ce7c194e696a3185f45f17d442a9f
|
File details
Details for the file otr_ctrf_bridge-0.1.0-py3-none-any.whl.
File metadata
- Download URL: otr_ctrf_bridge-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98d22434af1fba8ff41fea067a851460a89d2e9654bf2e72ac7a37427ca91f09
|
|
| MD5 |
6ff25cc337eea38762739151d7b8c944
|
|
| BLAKE2b-256 |
ebc9693c5545d831340136c84fe8c3f0168bd75b72683ce4f4c233ec49407b90
|