Asserting in __TRY __CATCH #275
Closed
ZigaJavornik
started this conversation in
General
Replies: 2 comments
|
As I clicked post I figured it out.... The problem is that |
0 replies
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
TcUnit version 1.3.1.
TwinCAT version 4026.26
I was wondering if anyone has tried doing assertions in TwinCAT 4026 in the
__TRY__CATCHstatement. The test assertion works (I think) to a point where the fail is reported but the message is not written to the output window.Example:
The function will intentionaly fail before implementation due to division with 0. To check for this the try catch is used. I have 3 tests in total, and 1 has failed while 2 have passed, though there is no message reported:

All reactions