Converts Cppcheck XML output to JUnit format.
Project description
Tool that converts cppcheck XML output to JUnit XML format. Use on your CI servers to get more helpful feedback.
Installation
You can install, upgrade, and uninstall cppcheck-junit with these commands:
$ pip install cppcheck-junit
$ pip install --upgrade cppcheck-junit
$ pip uninstall cppcheck-junit
Usage
Enable XML version 2 output, enable additional rules (for example all), and redirect cppcheck stderr to a file:
$ cppcheck --xml-version=2 --enable=all . 2> cppcheck-result.xml
Convert it to JUnit XML format:
$ cppcheck_junit cppcheck-result.xml cppcheck-junit.xml
If no cppcheck errors are generated, a single "Cppcheck success" test case is output so that CI tools like Bamboo will not fail on the JUnit task.
Releases
1.5.0 - 2017-10-18
Fix Bamboo support by always filling in name and classname attributes on JUnit error test cases.
1.4.0 - 2017-06-14
Expand JUnit schema support by adding in some missing fields.
1.3.0 - 2016-12-31
Support Python 3.6.
1.2.0 - 2016-07-27
Actually handle cppcheck errors that don’t have a <location> tag. Update test suite to use tox.
1.1.2 - 2016-04-13
Handle cppcheck errors that don’t have a <location> tag.
1.1.1 - 2016-04-11
Fix requirements.txt include for setup.py.
1.1.0 - 2016-04-11
If no cppcheck errors are parsed, output a single success test case to satisfy Bamboo.
1.0.0 - 2016-02-15
Release 1.0.0. Increase test coverage.
0.2.0 - 2016-01-28
Added severity to JUnit message, improved help description, handle XML parsing errors.
0.1.0 - 2015-11-15
First release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file cppcheck-junit-1.5.0.tar.gz
.
File metadata
- Download URL: cppcheck-junit-1.5.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e53acafaf82ec4105fd24ca464945d6a0412c000c4739af010b1498e1212d4c |
|
MD5 | 64040cae8cecf3bb455b29eac3e37ab2 |
|
BLAKE2b-256 | b45aab0258cfc387944caffb468762c9ebe462ea053aa6a0504966a8b3c9c477 |