Skip to content

Latest commit

 

History

History
65 lines (38 loc) · 2.36 KB

README.MD

File metadata and controls

65 lines (38 loc) · 2.36 KB

TcUnit logo GitHub license Open Source? Yes!

TcUnit - Visual Studio Extension

Visual Studio Extension for higher productivity when using TcUnit for unit testing with TwinCAT 3.1 from Beckhoff.

Table of Contents

Installation

To install the TcUnit Visual Studio Extension, follow these steps:

  1. Download the latest installer.
  2. Select the Visual Studio and TcXaeShell versions, which the TcUnit Extension should be installed for.
  3. Click on "Install".
  4. Follow the on-screen instructions to complete the installation.

Usage

Add Test Suite

add test suite command

add test suite result

Add Test Case

add test case command

add test case result

add test case template

Visual Studio Test Explorer Support

Note

VS Test Explorer currently not supported

vs-test-explorer

Uses TcUnit.TestAdapter for extending vstest

Options

Configure test suite and test case naming convention using regular expressions and provide the test case template source code in the options.

vs-options

PLC Project Template

  1. Template is copied to "C:\TwinCAT\3.1\Components\Plc\PlcTemplates\1.0.0.0\Plc Templates\TcUnit" after installation
  2. Add "TcUnit Template" as PLC project

add tcunit template

  1. Basic setup for unit testing is already included in the template

tcunit template

License

MIT