Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wasilak/yamllint-junit
https://github.com/wasilak/yamllint-junit
Last synced: about 8 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/wasilak/yamllint-junit
- Owner: wasilak
- License: mit
- Created: 2017-06-12T06:33:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-01T15:28:20.000Z (about 2 months ago)
- Last Synced: 2024-10-30T01:56:55.638Z (17 days ago)
- Language: Python
- Size: 43 KB
- Stars: 7
- Watchers: 3
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[yamllint](https://github.com/adrienverge/yamllint) to JUnit converter [![Build Status](https://travis-ci.com/wasilak/yamllint-junit.svg?branch=master)](https://travis-ci.com/wasilak/yamllint-junit)
---### Installation
via pip:
```shell
pip install yamllint-junit
```
### Updating
via pip:
```shell
pip install yamllint-junit --upgrade
```### Usage:
run `yamllint-junit` and pass `yamllint` (with `-f parsable` option) output to it
```shell
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](https://www.atlassian.com/software/bamboo) which require that a properly formed JUnit file containing a minimum of one testcase be recorded in order to not fail builds.