ansible-lint to JUnit converter.
Project description
ansible-lint to JUnit converter
Installation
via pip;
# In case of Python 2.x, you have to first run:
# pip install lxml
pip install ansible-lint-junit
Updating
via pip:
pip install ansible-lint-junit --upgrade
Usage:
- you can pipe output of
ansible-lint
:# less verbose ansible-lint playbook.yml -p --nocolor | ansible-lint-junit -o ansible-lint.xml # more verbose ansible-lint playbook.yml --parseable-severity --nocolor | ansible-lint-junit -o ansible-lint.xml
- or run
ansible-lint
on your playbook(s) and redirect output to file# less verbose ansible-lint -p --nocolor your_fancy_playbook.yml > ansible-lint.txt # more verbose ansible-lint --parseable-severity --nocolor your_fancy_playbook.yml > ansible-lint.txt
and runansible-lint-junit
and pass generated file to it# less verbose ansible-lint-junit ansible-lint.txt -o ansible-lint.xml # more verbose 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.
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
Close
Hashes for ansible-lint-junit-0.17.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aecbb0836828674527cc6e03f1752f6f4ad1e6547b825b6dac06335efed91e7e |
|
MD5 | e71c3ada7efc3982d5cd0d9dc8b35ea6 |
|
BLAKE2b-256 | 9450eacd8af3d98792b626d90f98922c8a2a75c416c30e77e6be0308f61929fa |
Close
Hashes for ansible_lint_junit-0.17.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d29e1a309a6cdad41b76cfba8f188330e24895526133d3139fc32a474623bb4d |
|
MD5 | 6a3f58a5aa53b74d271f24dc483fc60d |
|
BLAKE2b-256 | 2d5dfc0f37817f21ad15cfac853aaf23ad7baf74b76984cd25c96976da952568 |