co♻e unittest framework for CODESYS auf ctrlX

Hello, 

I am trying to write PLC unit tests with the codesys unittest framework co♻e.

The tests run fine and complete, but there neither is a test result output in the message list, nor a result file. 

ctrlX is not listed as compatible here: https://forge.codesys.com/lib/counit/apireference/API%20Reference/

Did anyone successfully run co♻e unittests on ctrlX, or is there an alternative testing framework? 

Thank you and best regards

 

Best reply by bostroemc

The test results are exported automatically to location xUnitFilePath, defined in the libary parameters.  Setting xUnitFilePath='/var/snap/rexroth-solutions/common/solutions/activeConfiguration/coUnit_xunit_testresults.xml' will push the results to the base folder of the active configuration.

To view the file in the ctrlX CORE's web UI, open the AppData page, then select "File view" in the options (...).

You can then retrieve the file using WebDAV (search this forum for more info) or via the REST API.  For example, in Python:

 

View original
4 replies