Skip to main content

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.

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 /tmp/drc.json --format json
drc2junit /tmp/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 /tmp/erc.json --format json
erc2junit /tmp/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

kicad2junit-0.1.4.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kicad2junit-0.1.4-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file kicad2junit-0.1.4.tar.gz.

File metadata

  • Download URL: kicad2junit-0.1.4.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/5.4.109+

File hashes

Hashes for kicad2junit-0.1.4.tar.gz
Algorithm Hash digest
SHA256 ddb662bc837b36b4d034b940e34e5f77c3e1eb5de3dd2fe1cb1ba67aa1648a61
MD5 29e23e42962a17220cb378d22f02b04b
BLAKE2b-256 345002c2213530f6b0e6f4678c0c3a3082a412628a897d1911eb2a7faa750414

See more details on using hashes here.

File details

Details for the file kicad2junit-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: kicad2junit-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.9 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

Hashes for kicad2junit-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 20b56c252ff5e63de3d9dca52b363788e477df97cda0d0813047750d85e50db9
MD5 25954831835d1eeffd4c1ac680553bca
BLAKE2b-256 52204850bfff8d5a711fddcdceb4fa86b9d9be10fe3b91e1ae1770779bad3487

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page