thinkwise-software-factory-unit-tests

Creates Thinkwise Software Factory unit tests through a propose, confirm, build workflow via MCP connector.

5|Updated Aug 25, 2026
One-click install
npx skills add https://github.com/rkortThinkwise/sf-mcp-skills-temp --skill thinkwise-software-factory-unit-tests-rkortthinkwise
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: thinkwise-software-factory-unit-tests
Source: https://github.com/rkortThinkwise/sf-mcp-skills-temp/tree/main/thinkwise-software-factory-unit-tests
Command: npx skills add https://github.com/rkortThinkwise/sf-mcp-skills-temp --skill thinkwise-software-factory-unit-tests-rkortthinkwise

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing unit tests for Thinkwise Software Factory control procedures requires deep knowledge of the unit_test entity model, its child entities, mock data sets, and connector quirks. This Skill guides the full lifecycle so tests are grounded in the actual generated code, approved by the user before any model writes, and correctly built and executed through the MCP connector. ## Core Features & Use Cases - Three-phase workflow: Propose a scenario list grounded in the target control procedure's real branches, get explicit user sign-off, then build the unit_test rows and child entities via the staging flow. - Full entity coverage: Handles all test types (DEFAULT, LAYOUT, CONTEXT, BADGE, TASK, PROCESS, SUBROUTINE, HANDLE_, TRIGGER_) with confirmed-live guidance on entities, enums, tasks, and known connector pitfalls. - Mock data authoring: Step-by-step recipe for building data_set mock rows through the API, including FK-chain mocking, explicit identity values, and permission troubleshooting. - Use Case: A developer asks for test coverage on a new default procedure. The Skill reads the generated code, proposes scenarios like boundary and sad-path cases, gets approval, then creates the unit_test via task_copy_unit_test, adds input/output rows, links mock data, and runs the test to confirm it passes. ## Quick Start Ask the assistant to suggest and create unit tests for a specific control procedure in your Software Factory model, and it will propose scenarios for your approval before building anything.

Frequently Asked Questions about thinkwise-software-factory-unit-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a unit test in Thinkwise Software Factory?

Create a unit test by copying an existing unit_test row via task_copy_unit_test and overriding its target fields in the same call, since direct adds reject type_of_object. Then add input and output rows through the overview entities, link mock data if needed, and run it with task_add_job_to_test_unit_test_single.

How do I add mock data to a Thinkwise unit test?

Create a data_set, add tables with task_create_data_set_tab, select columns via task_data_set_col_selection_select, create rows with task_create_tab_data, and set values on tab_data_col_overview. Link it to the test through unit_test_data_set, mocking the full foreign key chain bottom-up with explicit identity values.

What unit test types does Thinkwise Software Factory support?

Confirmed types include DEFAULT, LAYOUT, CONTEXT, BADGE, TASK, PROCESS, SUBROUTINE, HANDLE_INSERT, HANDLE_UPDATE, HANDLE_DELETE, TRIGGER_INS, TRIGGER_UPD, and TRIGGER_DEL. The full catalog should be confirmed live via the unit_test_type entity rather than assumed exhaustive.

Why does my Thinkwise unit test fail when the logic looks correct?

Common causes include datetime or decimal equal_to comparisons failing on string format mismatches, or should_rollback being unreliable outside HANDLE_UPDATE tests. Check unit_test_result_parmtr.output_value for the raw output string and unit_test_result_msg.actual_msg for database errors on aborted runs.

Can I write unit test input and output rows directly to unit_test_col_input?

No, direct adds on unit_test_col_input and similar child entities are rejected. Write input and output values through unit_test_input_parmtr_overview and unit_test_output_parmtr_overview as dependent records under unit_test; unit_test_col_filter is the confirmed exception that is directly addable.