Ansible-lint-junit
The ansible-lint to JUnit converter.
Installation
via pip:
pip install ansible-lint-junit
Updating
via pip:
pip install ansible-lint-junit --upgrade
Usage:
- You can run
ansible-linton your playbook(s) and redirect output to pipeansible-lint playbook.yml -p --nocolor | ansible-lint-junit -o ansible-lint.xml
- You can use a temporary file to store the output of
ansible-lint. After that runansible-lint-junitand pass generated file to itansible-lint -p --nocolor your_fancy_playbook.yml > ansible-lint.txt ansible-lint-junit ansible-lint.txt -o ansible-lint.xml
Output
- If there are any lint errors, full JUnit XML will be created.
- If there are no errors, empty JUnit XML will be created, this is for
i.e. Bamboo JUnit parser plugin compatibility.
It will break build if XML is missing or incorrect, and there is really no way of generating XML with "PASSED" tests in case of linter.
License
The ansible-lint-junit project is distributed under the [MIT] license.
Metadata
Release files for ansible-lint-junit 0.17.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ansible-lint-junit-0.17.8.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ansible_lint_junit-0.17.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.5 kB
Release files / ansible-lint-junit-0.17.8.tar.gz
| Download URL | ansible-lint-junit-0.17.8.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d90fabd6d7c25b319b9a78022eaad2bd647ace364f18d0866c32ba6d58d7c0c
|
|
BLAKE2b-256 checksum How to use checksums |
7c6278629fbb9208f532dc8bddf9d796aac12731fb4316078945110f16a5f0d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / ansible_lint_junit-0.17.8-py3-none-any.whl
| Download URL | ansible_lint_junit-0.17.8-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e9edfc35fcedc4d860b4478bc1ed6547fe7223f6f97f515adb147514f134b026
|
|
BLAKE2b-256 checksum How to use checksums |
c6544cfdfd56fe6a80784a5fc1db1617b8dc9c554341ab24a01f90ea4f9e3e39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|