Convert KiCad ERC/DRC report to Junit reports
Project description
kicad2junit
A utility to convert KiCad DRC/ERC reports to Junit reports for CI/CD checks.
Install
The utility is available on pypi and can be installed by pip:
pip install kicad2junit
Usage
DRC
usage: drc2junit [-h] [--project [PROJECT]] [--project-dir PROJECT_DIR] [--warn-error] [input] [output]
Convert KiCad DRC report to JUnit
positional arguments:
input JSON DRC report
output JUnit XML output
options:
-h, --help show this help message and exit
--project [PROJECT] Kicad project file
--project-dir PROJECT_DIR
Kicad project directory
--warn-error Treat warnings as errors
Example
kicad-cli pcb drc /path/to/project.kicad_pcb --format json --output drc.json
drc2junit drc.json drc.junit.xml --project /path/to/project.kicad_pro
ERC
usage: erc2junit [-h] [--project [PROJECT]] [--project-dir PROJECT_DIR] [--warn-error] [input] [output]
Convert KiCad ERC report to JUnit
positional arguments:
input JSON ERC report
output JUnit XML output
options:
-h, --help show this help message and exit
--project [PROJECT] Kicad project file
--project-dir PROJECT_DIR
Kicad project directory
--warn-error Treat warnings as errors
Usage
kicad-cli sch erc /path/to/project.kicad_sch --format json --output erc.json
erc2junit erc.json erc.junit.xml --project /path/to/project.kicad_pro
Exit code
The exit code is set to 1 (Failure) if one or more errors are found (and warnings if --warn-error is used).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kicad2junit-0.1.5.tar.gz.
File metadata
- Download URL: kicad2junit-0.1.5.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/5.4.109+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a41e634f9842d6f80727578180e00783891185be6a04951492eed557c6074462
|
|
| MD5 |
05da1bb178a81b68908874704702d6fa
|
|
| BLAKE2b-256 |
bbfe0c5a30436c07e70c36900ee8e0c7c7fbe5a53229f8efc9cdc94bdb227936
|
File details
Details for the file kicad2junit-0.1.5-py3-none-any.whl.
File metadata
- Download URL: kicad2junit-0.1.5-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/5.4.109+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7df0d71dc8b1d728569aa2e80f66a1e9d85cd7698c8b225206716ea214f4472a
|
|
| MD5 |
672a6535040d7b6e17fcc8dbe12d1eb7
|
|
| BLAKE2b-256 |
50617c4785a878ecb2942175488e021c85062d9c53fa6ac432e08b7f13790de4
|