cppcheck JUnit Converter
========================
.. image:: https://github.com/johnthagen/cppcheck-junit/workflows/python/badge.svg
:target: https://github.com/johnthagen/cppcheck-junit/actions
.. image:: https://codeclimate.com/github/johnthagen/cppcheck-junit/badges/gpa.svg
:target: https://codeclimate.com/github/johnthagen/cppcheck-junit
.. image:: https://codeclimate.com/github/johnthagen/cppcheck-junit/badges/issue_count.svg
:target: https://codeclimate.com/github/johnthagen/cppcheck-junit
.. image:: https://img.shields.io/pypi/v/cppcheck-junit.svg
:target: https://pypi.python.org/pypi/cppcheck-junit
.. image:: https://img.shields.io/pypi/status/cppcheck-junit.svg
:target: https://pypi.python.org/pypi/cppcheck-junit
.. image:: https://img.shields.io/pypi/pyversions/cppcheck-junit.svg
:target: https://pypi.python.org/pypi/cppcheck-junit/
Tool that converts `cppcheck <http://cppcheck.sourceforge.net/>`_ 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:
.. code:: shell-session
$ 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:
.. code:: shell-session
$ cppcheck --xml-version=2 --enable=all . 2> cppcheck-result.xml
Convert it to JUnit XML format:
.. code:: shell-session
$ 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
--------
2.4.0 - 2024-01-13
^^^^^^^^^^^^^^^^^^
- Support Python 3.12
- Include error info from multiple locations
- Added ``junitparser`` as a dependency to write junit output
- Update unitests for argument parser
- Enable mypy for type checking
2.3.0 - 2023-04-30
^^^^^^^^^^^^^^^^^^
- Drop Python 3.7 support and support Python 3.11
2.2.0 - 2022-03-29
^^^^^^^^^^^^^^^^^^
- Add optional argument for setting return code when cppcheck found errors.
- Drop Python 3.6 and support Python 3.10.
2.1.0 - 2020-12-30
^^^^^^^^^^^^^^^^^^
- Drop Python 3.5 and support Python 3.9.
2.0.0 - 2020-03-29
^^^^^^^^^^^^^^^^^^
- Drop Python 2.7
1.7.0 - 2019-12-14
^^^^^^^^^^^^^^^^^^
- Drop Python 3.4 and support Python 3.8.
- Include license file.
1.6.0 - 2018-07-09
^^^^^^^^^^^^^^^^^^
Drop Python 3.3 and support Python 3.7.
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.
Raw data
{
"_id": null,
"home_page": "https://github.com/johnthagen/cppcheck-junit",
"name": "cppcheck-junit",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "Cppcheck C++ JUnit",
"author": "John Hagen",
"author_email": "johnthagen@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/4a/8b/31f80d3ffa497bddd3d9ccc6b61fbfcbf8d7f7dd1d4407c147c80d1bce0b/cppcheck-junit-2.4.0.tar.gz",
"platform": null,
"description": "cppcheck JUnit Converter\r\n========================\r\n\r\n.. image:: https://github.com/johnthagen/cppcheck-junit/workflows/python/badge.svg\r\n :target: https://github.com/johnthagen/cppcheck-junit/actions\r\n\r\n.. image:: https://codeclimate.com/github/johnthagen/cppcheck-junit/badges/gpa.svg\r\n :target: https://codeclimate.com/github/johnthagen/cppcheck-junit\r\n\r\n.. image:: https://codeclimate.com/github/johnthagen/cppcheck-junit/badges/issue_count.svg\r\n :target: https://codeclimate.com/github/johnthagen/cppcheck-junit\r\n\r\n.. image:: https://img.shields.io/pypi/v/cppcheck-junit.svg\r\n :target: https://pypi.python.org/pypi/cppcheck-junit\r\n\r\n.. image:: https://img.shields.io/pypi/status/cppcheck-junit.svg\r\n :target: https://pypi.python.org/pypi/cppcheck-junit\r\n\r\n.. image:: https://img.shields.io/pypi/pyversions/cppcheck-junit.svg\r\n :target: https://pypi.python.org/pypi/cppcheck-junit/\r\n\r\nTool that converts `cppcheck <http://cppcheck.sourceforge.net/>`_ XML output to JUnit XML format.\r\nUse on your CI servers to get more helpful feedback.\r\n\r\nInstallation\r\n------------\r\n\r\nYou can install, upgrade, and uninstall ``cppcheck-junit`` with these commands:\r\n\r\n.. code:: shell-session\r\n\r\n $ pip install cppcheck-junit\r\n $ pip install --upgrade cppcheck-junit\r\n $ pip uninstall cppcheck-junit\r\n\r\nUsage\r\n-----\r\nEnable XML version 2 output, enable additional rules (for example ``all``), and redirect\r\n``cppcheck`` ``stderr`` to a file:\r\n\r\n.. code:: shell-session\r\n\r\n $ cppcheck --xml-version=2 --enable=all . 2> cppcheck-result.xml\r\n\r\nConvert it to JUnit XML format:\r\n\r\n.. code:: shell-session\r\n\r\n $ cppcheck_junit cppcheck-result.xml cppcheck-junit.xml\r\n\r\nIf no ``cppcheck`` errors are generated, a single ``\"Cppcheck success\"`` test case is\r\noutput so that CI tools like Bamboo will not fail on the JUnit task.\r\n\r\nReleases\r\n--------\r\n\r\n2.4.0 - 2024-01-13\r\n^^^^^^^^^^^^^^^^^^\r\n\r\n- Support Python 3.12\r\n- Include error info from multiple locations\r\n- Added ``junitparser`` as a dependency to write junit output\r\n- Update unitests for argument parser\r\n- Enable mypy for type checking\r\n\r\n2.3.0 - 2023-04-30\r\n^^^^^^^^^^^^^^^^^^\r\n\r\n- Drop Python 3.7 support and support Python 3.11\r\n\r\n2.2.0 - 2022-03-29\r\n^^^^^^^^^^^^^^^^^^\r\n\r\n- Add optional argument for setting return code when cppcheck found errors.\r\n- Drop Python 3.6 and support Python 3.10.\r\n\r\n2.1.0 - 2020-12-30\r\n^^^^^^^^^^^^^^^^^^\r\n\r\n- Drop Python 3.5 and support Python 3.9.\r\n\r\n2.0.0 - 2020-03-29\r\n^^^^^^^^^^^^^^^^^^\r\n\r\n- Drop Python 2.7\r\n\r\n1.7.0 - 2019-12-14\r\n^^^^^^^^^^^^^^^^^^\r\n\r\n- Drop Python 3.4 and support Python 3.8.\r\n- Include license file.\r\n\r\n1.6.0 - 2018-07-09\r\n^^^^^^^^^^^^^^^^^^\r\n\r\nDrop Python 3.3 and support Python 3.7.\r\n\r\n1.5.0 - 2017-10-18\r\n^^^^^^^^^^^^^^^^^^\r\n\r\nFix Bamboo support by always filling in ``name`` and ``classname`` attributes on JUnit error\r\ntest cases.\r\n\r\n1.4.0 - 2017-06-14\r\n^^^^^^^^^^^^^^^^^^\r\n\r\nExpand JUnit schema support by adding in some missing fields.\r\n\r\n1.3.0 - 2016-12-31\r\n^^^^^^^^^^^^^^^^^^\r\n\r\nSupport Python 3.6.\r\n\r\n1.2.0 - 2016-07-27\r\n^^^^^^^^^^^^^^^^^^\r\n\r\nActually handle ``cppcheck`` errors that don't have a ``<location>`` tag.\r\nUpdate test suite to use ``tox``.\r\n\r\n1.1.2 - 2016-04-13\r\n^^^^^^^^^^^^^^^^^^\r\n\r\nHandle ``cppcheck`` errors that don't have a ``<location>`` tag.\r\n\r\n1.1.1 - 2016-04-11\r\n^^^^^^^^^^^^^^^^^^\r\n\r\nFix ``requirements.txt`` include for ``setup.py``.\r\n\r\n1.1.0 - 2016-04-11\r\n^^^^^^^^^^^^^^^^^^\r\n\r\nIf no ``cppcheck`` errors are parsed, output a single success test case to satisfy Bamboo.\r\n\r\n1.0.0 - 2016-02-15\r\n^^^^^^^^^^^^^^^^^^\r\n\r\nRelease 1.0.0. Increase test coverage.\r\n\r\n0.2.0 - 2016-01-28\r\n^^^^^^^^^^^^^^^^^^\r\n\r\nAdded severity to JUnit message, improved help description, handle XML parsing errors.\r\n\r\n0.1.0 - 2015-11-15\r\n^^^^^^^^^^^^^^^^^^\r\n\r\nFirst release.\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Converts Cppcheck XML output to JUnit format.",
"version": "2.4.0",
"project_urls": {
"Homepage": "https://github.com/johnthagen/cppcheck-junit"
},
"split_keywords": [
"cppcheck",
"c++",
"junit"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3c7b2c00016437c929f7bace231e9b28181841a925dc768c27ec73f323c95ddb",
"md5": "9f581947280691559df4895c74a1d6dc",
"sha256": "7d1d325b0215105987aa7e9883487330c94e3da4c7a8a325ddcacb991029230d"
},
"downloads": -1,
"filename": "cppcheck_junit-2.4.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9f581947280691559df4895c74a1d6dc",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 7925,
"upload_time": "2024-01-13T19:42:07",
"upload_time_iso_8601": "2024-01-13T19:42:07.851826Z",
"url": "https://files.pythonhosted.org/packages/3c/7b/2c00016437c929f7bace231e9b28181841a925dc768c27ec73f323c95ddb/cppcheck_junit-2.4.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4a8b31f80d3ffa497bddd3d9ccc6b61fbfcbf8d7f7dd1d4407c147c80d1bce0b",
"md5": "ec11db610504f3fe47679fbf3c4fc467",
"sha256": "3a5d94bfc90911535bce9760082062fb26b754cee27618a7f9d206cbee6bbf52"
},
"downloads": -1,
"filename": "cppcheck-junit-2.4.0.tar.gz",
"has_sig": false,
"md5_digest": "ec11db610504f3fe47679fbf3c4fc467",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 6080,
"upload_time": "2024-01-13T19:42:09",
"upload_time_iso_8601": "2024-01-13T19:42:09.509473Z",
"url": "https://files.pythonhosted.org/packages/4a/8b/31f80d3ffa497bddd3d9ccc6b61fbfcbf8d7f7dd1d4407c147c80d1bce0b/cppcheck-junit-2.4.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-13 19:42:09",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "johnthagen",
"github_project": "cppcheck-junit",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"tox": true,
"lcname": "cppcheck-junit"
}