Skip to content

VisualStudio Extension for higher productivity when using TcUnit for unit testing in TwinCAT 3.1 from Beckhoff

License

Notifications You must be signed in to change notification settings

philippleidig/TcUnit-VsExtension

Repository files navigation

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 due to open issue see TcUnit #218 for more information

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

About

VisualStudio Extension for higher productivity when using TcUnit for unit testing in TwinCAT 3.1 from Beckhoff

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published