CfUnit — Unit Testing framework

In short 'CfUnit' is a free open-source unit testing framework, motivated by absence of 'good and free' IEC61131-3 automated unit-testing solutions. Written in Structured Text for CODESYS based PLC systems. Released under MIT-License

Download

Features

Easy

Download,
Install,
Reference,
Ready!

Powerful

Higher productivity,
Fewer bugs,
Cleaner code,
Self-documenting

Free!

MIT-Licensed

Tour

Frequently Asked Questions

Getting started
All you need to do is to download & install the library and provide a
reference of the CfUnit-library in your project. Now you are ready and
you can start to write your test code.

API
Online API reference can be found here.

Report bugs
Bugs can be reported by opening a ticket here.

Q&A
If you have any questions, you can drop them here.
If you cannot find your anwser, you can always drop a question in the comment.
Posted questions will be modderated into the Q&A for future reference.

Download

CfUnit.compiled-library
v0.9.0.0 precompiled version.
Download

CfUnit.library
v0.9.0.0, Compile and install it yourself
Download

CfUnitVerifier.project
Verifies CfUnit and doubles
as a usage example
Download

CfUnitVerifier output.xml
CfUnit library verifier output in XML
Download

SimpleCfUnitExampleProject.project
Simple Usage Example
Download

CfUnitTimedTestExample.project
Timed Testing example
Download

About

Kudos to Jakob Sagatowski for his kind permission to port his testing framework to CODESYS. Motivated by absence of 'good and free' IEC61131-3 automated unit testing frameworks/solutions. Assistance provided by zer0g & Ingo was greatly appreciated. Without their assistance the porting alone would have taken me several months. Kudos for helping out with various tickets and providing valueable feedback!

Port from TcUnit v0.9.0, originally written for TwinCAT3 by Jakob Sagatowski.