Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

junit2influx

This library provide some utilities to manipulate test data from junit files and sendthem to a influxdb server.

Installation

pip install junit2influx

Usage

A CLI is available, as shown below:

$ junit2influx --help

Usage: junit2influx [OPTIONS] JUNIT_FILE

Extract test data from a junit file and send it to influxdb:

    junit2influx test.xml --influxdb-url url

Each test is send as a single datapoint with its result and
duration under the "tests" measurement, and overall data
(number of tests, total duration, etc.) is sent under
the "builds" measurement.

You can provide additional tags and fields to be sent with
each datapoint to influxdb by using the --field and --tag
flags:

    junit2influx test.xml --influxdb-url url --tag host=myhost --field commit=dh876d0

All additional tags and fields are sent as string by default, but
you can cast them to specific json types (bool, float and int) if needed:

    --tag int:stage=1      # add an integer "stage" tag with a value of 1
    --tag bool:fake=true   # add a boolean "fake" tag with a value of True
    --field float:dur=3.5  # add a float "dur" field with a value of 3.5

Multiple --field and --tag flags can be provided.

Metadata

Release files for junit2influx 0.1.3.dev0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for junit2influx 0.1.3.dev0
File Size Uploaded Provenance Actions
junit2influx-0.1.3.dev0.tar.gz 4.8 kB Without provenance Details for junit2influx-0.1.3.dev0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for junit2influx 0.1.3.dev0
File Interpreter ABI Platform Actions
junit2influx-0.1.3.dev0-py2.py3-none-any.whl Python 3, Python 2 none any Details for junit2influx-0.1.3.dev0-py2.py3-none-any.whl

Total release size: 12.0 kB

Release files / junit2influx-0.1.3.dev0.tar.gz

Download URL junit2influx-0.1.3.dev0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
285c7d4a3da391e14a6a568c57c2d8b9bf24fb46ad68f064a4c9ce66fbe270fe
BLAKE2b-256 checksum
How to use checksums
7e0f26d3c2d38606ea7cda54e19b690912dede8a8753fb63dc302c16c1e67ef7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / junit2influx-0.1.3.dev0-py2.py3-none-any.whl

Download URL junit2influx-0.1.3.dev0-py2.py3-none-any.whl
Size 7.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5c8bdc3b0910b7812cefc79fab7898de130257a803196161426b7b7a806f3044
BLAKE2b-256 checksum
How to use checksums
12db5748ac131b1e1a1c58f741889272ad4e5cb4ca60b1af92648287f71715f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for junit2influx 0.1.3.dev0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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