Skip to main content

A tool for generating junit output from a shell

Project description

sh_junit_xml

Build Status PyPI version

This a simple wrapper around the junit_xml python library to allow for generating junit xml files from a shell. The main use case for this is generating test results for jenkins from shell scripts.

Installation

Install via pip:

pip install sh_junit_xml

Install from source:

./setup.py install

Usage

The script wraps all arguments passed to junit_xml.TestCase.__init__() so that you can construct any arbitrary test case that is available through this class. The each argument is simply prepended with -- and remains otherwise identical. Most arguments are treated as strings but a few special cases are converted after they are read in from the command line, such as --elapsed_sec which is converted to a number since it is expected in that format. Additionally arguments that start with @ will be treated as filename, which are opened and the contents are passed as the argument.

In addition to the automatic arguments generated from the TestCase constructor the following arguments are available: --suite: Specify the suite name --failure: Mark the test as failed and pass the failure message. --error: Mark the test as an error and pass the error message. --skipped: Mark the test as skipped and pass the skipped message

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

sh_junit_xml-1.1.5.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

sh_junit_xml-1.1.5-py2.py3-none-any.whl (3.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file sh_junit_xml-1.1.5.tar.gz.

File metadata

  • Download URL: sh_junit_xml-1.1.5.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sh_junit_xml-1.1.5.tar.gz
Algorithm Hash digest
SHA256 6719a6bc23f52d9163a4990fa5a3a7490dd6489fd7c905ffaa7fc14420cf1217
MD5 45da8d0db9c45ec610c8f64d31b0e092
BLAKE2b-256 69502c4ba67a7590bc028d481794d0d3c91f7f15c272d584797ab435e236501d

See more details on using hashes here.

Provenance

The following attestation bundles were made for sh_junit_xml-1.1.5.tar.gz:

Publisher: publish.yaml on dandedrick/sh_junit_xml

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sh_junit_xml-1.1.5-py2.py3-none-any.whl.

File metadata

  • Download URL: sh_junit_xml-1.1.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sh_junit_xml-1.1.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b4a04154fff711277dc883b68540d876cb683ff32919582a3dfcd1b86348cbe4
MD5 81c36deee96276daa132d6cbb85f4e01
BLAKE2b-256 ac409e1c76021c0545f6ab58cfeac316f15545e5e1bc560b45bbf4a739feb9ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for sh_junit_xml-1.1.5-py2.py3-none-any.whl:

Publisher: publish.yaml on dandedrick/sh_junit_xml

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