yamllint-junit

yamllint to JUnit converter.


Keywords
yaml, junit
License
MIT
Install
pip install yamllint-junit==0.10.1

Documentation

yamllint-junit to JUnit converter Build Status

Installation

via pip:

pip install yamllint-junit

Updating

via pip:

pip install yamllint-junit --upgrade

Usage:

run yamllint-junit and pass yamllint (with -f parsable option) output to it

yamllint -f parsable test.yaml | yamllint-junit -o yamllint-junit.xml

Output

  • If there are any lint errors, JUnit XML will be created specifying the detailed description of each error as reported by yamllint
  • If there are no lint errors, JUnit XML will be created denoting one successful testcase named 'no_yamllint_errors'. This is to maintain compatibility with JUnit parsers such as Bamboo which require that a properly formed JUnit file containing a minimum of one testcase be recorded in order to not fail builds.