CfUnit — CODESYS Forge Unit Testing framework

'CfUnit' is motivated by absence of 'good and free' open source IEC61131-3 automated unit-testing solutions. Developed in ST for CODESYS based PLC systems. MIT-Licensed

Download

Features

Easy

Download,
Install,
Reference,
Ready!

Powerful

Higher productivity,
Fewer bugs,
Cleaner code,
CI/CD integration*
*under development

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.

Development Log
A development log can be found here.

Download

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

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

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

CfUnitVerifierOutput.xml
CfUnit library verifier output in XML
Download

SimpleCfUnitExample.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. 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!

Ported from TcUnit v0.9.1.0 originally written for TwinCAT3 by Jakob Sagatowski.