Unit testing framework for CODESYS

In short 'CfUnit' is a free and open-source unit testing framework for CODESYS released under MIT-License

Downloads

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.

User Guide
Follow this tuturial.
The end result of this tuturial in CODESYS can be downloaded here.
Allthough written for TwinCAT, it can be easily followed by CODESYS users.

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.

Downloads

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

About

Kudos to Jakob Sagatowski for his kind permission to port his wonderful testing framework to CODESYS. Assistance provided by zer0g & Ingo was greatly appreciated. Without their assistance this project would have taken me several months. Kudos for helping out with various tickets and providing valueable feedback!

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