Visual Studio Extension for higher productivity when using TcUnit for unit testing with TwinCAT 3.1 from Beckhoff.
To install the TcUnit Visual Studio Extension, follow these steps:
- Download the latest installer.
- Select the Visual Studio and TcXaeShell versions, which the TcUnit Extension should be installed for.
- Click on "Install".
- Follow the on-screen instructions to complete the installation.
Note
VS Test Explorer currently not supported due to open issue see TcUnit #218 for more information
Uses TcUnit.TestAdapter for extending vstest
Configure test suite and test case naming convention using regular expressions and provide the test case template source code in the options.
- Template is copied to "C:\TwinCAT\3.1\Components\Plc\PlcTemplates\1.0.0.0\Plc Templates\TcUnit" after installation
- Add "TcUnit Template" as PLC project
- Basic setup for unit testing is already included in the template