Functions and scripts for performing automated testing on a KiCad project
ERC and DRC tests
ERC and DRC test are performed using KiBot. These tests can be configured by editing the erc.yaml
and drc.yaml
files in the .kicad_helpers_config
directory. For example, ERC warnings are treated as errors by default, but this behavior can be changed by replacing the following line in .kicad_helpers_config/erc.yaml
:
erc_warnings: true
with
erc_warnings: false
You can also filter out specific errors/warnings using filters. Refer to the KiBot documentation for details.
test_erc(root)
test_drc(root)
validate_bom(root)
Run all tests in the tests
directory.
> kh_test