A tool for generating junit output from a shell
Project description
sh_junit_xml
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
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 sh_junit_xml-1.1.3.tar.gz.
File metadata
- Download URL: sh_junit_xml-1.1.3.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3614cba7854da0d7b08dac38f1105aad455c8bcd49c6dc56d81e8f019ce1cdb1
|
|
| MD5 |
c5780c1551c66a383b5e9b9dc63a278d
|
|
| BLAKE2b-256 |
8e40dd9448a6ef5be6f9c9eead06a5296d1d6efbe56608398782e825c1350211
|
Provenance
The following attestation bundles were made for sh_junit_xml-1.1.3.tar.gz:
Publisher:
publish.yaml on dandedrick/sh_junit_xml
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sh_junit_xml-1.1.3.tar.gz -
Subject digest:
3614cba7854da0d7b08dac38f1105aad455c8bcd49c6dc56d81e8f019ce1cdb1 - Sigstore transparency entry: 1694626736
- Sigstore integration time:
-
Permalink:
dandedrick/sh_junit_xml@ef380a738dee7598de11e2365d66099867a3239c -
Branch / Tag:
refs/tags/v1.1.3 - Owner: https://github.com/dandedrick
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@ef380a738dee7598de11e2365d66099867a3239c -
Trigger Event:
release
-
Statement type:
File details
Details for the file sh_junit_xml-1.1.3-py2.py3-none-any.whl.
File metadata
- Download URL: sh_junit_xml-1.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d73e61e2920d17abc2cfaeb59f9d91ec4bd5adde68d5435c07c80ef921e1bc95
|
|
| MD5 |
0406918e2f6d4468c48b805bfef46bcb
|
|
| BLAKE2b-256 |
70afad4213c6113cf4097a8d0226cd94bf180740ff3da2ef18ef5aadeb0d076f
|
Provenance
The following attestation bundles were made for sh_junit_xml-1.1.3-py2.py3-none-any.whl:
Publisher:
publish.yaml on dandedrick/sh_junit_xml
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sh_junit_xml-1.1.3-py2.py3-none-any.whl -
Subject digest:
d73e61e2920d17abc2cfaeb59f9d91ec4bd5adde68d5435c07c80ef921e1bc95 - Sigstore transparency entry: 1694626851
- Sigstore integration time:
-
Permalink:
dandedrick/sh_junit_xml@ef380a738dee7598de11e2365d66099867a3239c -
Branch / Tag:
refs/tags/v1.1.3 - Owner: https://github.com/dandedrick
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@ef380a738dee7598de11e2365d66099867a3239c -
Trigger Event:
release
-
Statement type: