Skip to main content

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.

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)

Source distribution for ansible-lint-junit 0.17.8
File Size Uploaded
ansible-lint-junit-0.17.8.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ansible-lint-junit 0.17.8
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.17.8 This release

2 release files

0.17.7

2 release files

0.17.6

2 release files

0.17.5

2 release files

0.17.4

2 release files

0.17.2

2 release files

0.17.1

2 release files

0.17

2 release files

0.16

1 release file

0.15

1 release file

0.14

1 release file

0.13

2 release files

0.12

2 release files

0.11

2 release files

0.10

2 release files

0.9

1 release file

0.8

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page