Skip to main content

ansible-lint to JUnit converter.

Project description

Build Status Total alerts Language grade: Python Maintainability

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 pipe
    ansible-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 run ansible-lint-junit and pass generated file to it
    ansible-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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansible-lint-junit-0.17.8.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

ansible_lint_junit-0.17.8-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for ansible-lint-junit-0.17.8.tar.gz
Algorithm Hash digest
SHA256 6d90fabd6d7c25b319b9a78022eaad2bd647ace364f18d0866c32ba6d58d7c0c
MD5 c97560d3f02485c9ab50e4d3243f10aa
BLAKE2b-256 7c6278629fbb9208f532dc8bddf9d796aac12731fb4316078945110f16a5f0d9

See more details on using hashes here.

File details

Details for the file ansible_lint_junit-0.17.8-py3-none-any.whl.

File metadata

File hashes

Hashes for ansible_lint_junit-0.17.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e9edfc35fcedc4d860b4478bc1ed6547fe7223f6f97f515adb147514f134b026
MD5 08a98cf524aca911207a1a158708a549
BLAKE2b-256 c6544cfdfd56fe6a80784a5fc1db1617b8dc9c554341ab24a01f90ea4f9e3e39

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page