Hello, is there possibly a template for writing Unit-Tests with ST besides the one existing for writing in c?
Unfortunately it is only possible to write Unit-Tests with C/C++ when using the UnitTest solution provided by B&R.
Note:
The unit tests are written in C / C++.
Code tested in this way can be written in IEC, C or C++, however, because the API is used for testing. The API for a dynamic library is defined using *.VAR, *.FUN and *.TYP files.
Unit tests can also be set up and performed for a binary-encrypted library.
Automation Help: UnitTest library
1 Like