tcunit_run
Run a full TcUnit test cycle on a TwinCAT target: save, build, activate, restart, wait for xUnit results, and parse them.
Instructions
Full TcUnit cycle: save (checked) → build → boot project autostart+generate → activate → restart → delete old result → wait for the xUnit file on the target → parse. Destructive-class (it activates a configuration on the target): tc_request_confirmation(action='tcunit_run', target=). plc_project_path from xae_plc_projects. TcUnit writes the result file only with its library parameter GVL_Param_TcUnit.xUnitEnablePublish = TRUE (default FALSE): the run is refused before anything is activated when the project source says FALSE, and stops waiting when the PLC reports FALSE (D40).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"plc_project_path": "<plc_project_path>"
},
"name": "tcunit_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout_s | No | ||
| disable_io | No | ||
| save_first | No | ||
| skip_build | No | ||
| confirm_token | No | ||
| plc_project_path | Yes | ||
| remote_result_path | No | ||
| allow_target_mismatch | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||