tcunit_scaffold
Generate a TcUnit test suite for a TwinCAT function block, creating test methods for each public method and registering it in the .plcproj. Assertions remain TODO stubs.
Instructions
Generate _Tests.TcPOU (TcUnit.FB_TestSuite) with Test_InitialState and one test method per public method, arranged from the FB interface, and register it in the .plcproj. Assertions are left as TODO stubs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fb_name | Yes | ||
| out_dir | No | ||
| overwrite | No | ||
| add_to_plcproj | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||