ansible-lint to JUnit converter.
Project description
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-lint
on 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-junit
and 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.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file ansible-lint-junit-0.17.8.tar.gz
.
File metadata
- Download URL: ansible-lint-junit-0.17.8.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d90fabd6d7c25b319b9a78022eaad2bd647ace364f18d0866c32ba6d58d7c0c |
|
MD5 | c97560d3f02485c9ab50e4d3243f10aa |
|
BLAKE2b-256 | 7c6278629fbb9208f532dc8bddf9d796aac12731fb4316078945110f16a5f0d9 |
File details
Details for the file ansible_lint_junit-0.17.8-py3-none-any.whl
.
File metadata
- Download URL: ansible_lint_junit-0.17.8-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9edfc35fcedc4d860b4478bc1ed6547fe7223f6f97f515adb147514f134b026 |
|
MD5 | 08a98cf524aca911207a1a158708a549 |
|
BLAKE2b-256 | c6544cfdfd56fe6a80784a5fc1db1617b8dc9c554341ab24a01f90ea4f9e3e39 |