yamllint-junit to JUnit converter
via pip:
pip install yamllint-junit
via pip:
pip install yamllint-junit --upgrade
run yamllint-junit
and pass yamllint
(with -f parsable
option) output to it
yamllint -f parsable test.yaml | yamllint-junit -o yamllint-junit.xml
- 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.