50 std::vector<std::pair<wxString, int>> tests =
52 {
"erc_pin_not_connected_basic", 2 },
56 {
"erc_directive_label_not_connected", 1 }
59 for(
const std::pair<wxString, int>&
test : tests )
70 m_schematic->ConnectionGraph()->RunERC();
85 BOOST_CHECK_MESSAGE( errors.
GetCount() ==
test.second,
"Expected " <<
test.second <<
" errors in " <<
test.first.ToStdString()
86 <<
" but got " << errors.
GetCount() <<
"\n"
wxString GetTextReport()
Returns the ERC report in "text" (human readable) format.
Container for ERC settings.
std::map< int, SEVERITY > m_ERCSeverities
void TestTextVars(DS_PROXY_VIEW_ITEM *aDrawingSheet)
Check for any unresolved text variable references.
int TestPinToPin()
Checks the full netlist against the pin-to-pin connectivity requirements.
int TestSimilarLabels()
Checks for labels that differ only in capitalization.
int TestMultUnitPinConflicts()
Checks if shared pins on multi-unit symbols have been connected to different nets.
int TestConflictingBusAliases()
Check that there are no conflicting bus alias definitions in the schematic.
int TestNoConnectPins()
In KiCad 5 and earlier, you could connect stuff up to pins with NC electrical type.
int TestMultiunitFootprints()
Test if all units of each multiunit symbol have the same footprint assigned.
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
An implementation of the RC_ITEM_LIST interface which uses the global SHEETLIST to fulfill the contra...
int GetCount(int aSeverity=-1) const override
void SetSeverities(int aSeverities) override
@ ERCE_LIB_SYMBOL_MISMATCH
Symbol doesn't match copy in library.
@ ERCE_LIB_SYMBOL_ISSUES
Symbol not found in active libraries.
void LoadSchematic(SETTINGS_MANAGER &aSettingsManager, const wxString &aRelPath, std::unique_ptr< SCHEMATIC > &aSchematic)
std::vector< FAB_LAYER_COLOR > dummy
std::unique_ptr< SCHEMATIC > m_schematic
SETTINGS_MANAGER m_settingsManager
ERC_REGRESSION_TEST_FIXTURE()
BOOST_FIXTURE_TEST_CASE(ERCLabelNotConnected, ERC_REGRESSION_TEST_FIXTURE)