All skills

development/unit-tests/ifs-unit-test

ifs-unit-test

v1.0.0
by Gishan Sameera

Write, extend and fix IFS Cloud PL/SQL unit tests: the .pltst files (for .plsql logical units) and .plsvt files (for .plsvc projection handlers) under <component>/test/<component>/database, using the UNITTEST ... FOR ... USING ... IS ... BEGIN FOR |data table| LOOP ... ASSERT DSL with @MockTable, @MockPackage, @Mock, @MockCursor, @MockPassThrough and ASSERT FAIL. Built from how the IFS manufacturing planning team (MRP, PMRP, MASSCH, MRPSIM, CRP) and the whole repository write them. Use this skill whenever the user asks for a unit test, a pltst or plsvt file, "add tests for Get_X / Check_Common___ / Process_Y", "cover this method", "update the unit test after my signature change", "the unit test fails after my change", "mock this API/table", or whenever a code change in a .plsql/.plsvc method has an existing test file that must be kept in sync, even if the word "unit test" is not used. Not for SAR integration tests (.mkd, use ifs-sar-generator) and not for dev-DB test scripts.

Install

npx -y --registry=http://ifsaiskills.rnd.ifsdevworld.com:4873 ifs-ai-skills@0.5.7 add development/unit-tests/ifs-unit-test

Repository path

skills/development/unit-tests/ifs-unit-test