TcUnit icon indicating copy to clipboard operation
TcUnit copied to clipboard

An unit testing framework for Beckhoff's TwinCAT 3

Results 29 TcUnit issues
Sort by recently updated
recently updated
newest added

This pull request solves #187. Correction of the definition of variable `NumberOfTestsToAnalyse` in the two blocks `FB_TestResults` (one time) and `FB_TestSuite` (five times). A wrong limit was used. Old: `NumberOfTestsToAnalyse...

Checking assertion array limits in TcUnit (issue #190). - Added tests to TcUnit-Verifier - Added code to detect failing tests in TcUnit-Verfier_DotNet. - Added additional command line option to use...

**Describe the bug** When increasing TotalAsserts in method AddAssertResult the array limits of AssertResults are not being checked, causing PLC crash due to invalid array index. **Expected behavior** Prevent crash...

enhancement

**Describe the bug** RUN_IN_SEQUENCE executes the tests on the first TestSuite, but the tests for the 2nd TestSuite are not being executed. When RUN_IN_SEQUENCE calls AreAllTestsFinished(), it returns true (because...

bug

**Describe the bug** It is not possible to set the GVL variable `MaxNumberOfTestSuites` less than `MaxNumberOfTestsForEachTestSuite`. It causes compiler errors in `FB_TestResults` and `FB_TestSuite`. The reason is the variable `NumberOfTestsToAnalyse`...

bug

In v1.2.1.0 injection of a custom I_TestResultLogger is pretty much impossible. I tried to implement my own XML publisher that allows customizing the file name, but I came across a...

This PR extends to code in a way to fill the "time" attribute of the [junit xml specification](https://www.ibm.com/docs/en/adfz/developer-for-zos/9.1.1?topic=formats-junit-xml-format). I haven't tested this extensively, but just want to let you know...

New function "TIMEOUT_FOR_EACH_TEST" added to control time out for each test. This implements the functionality for https://github.com/tcunit/TcUnit/issues/142.

Is it a bad idea to return the Value of GVL_TcUnit.CurrentTestIsFinished from the TEST() function to allow skipping all the following code in the test? I would then start a...

As you know in PLC world it is very common that we have function blocks which react to some inputs after some delay. To be able to test these FBs...

enhancement