Hello everybody,
So far I have created my own test environment for the implementation of test driven development in LabView during software development and used this to test SubVIs in our company software platform.
Since creating these self-created test VIs sometimes takes a certain amount of time, I looked at LabView's Unit Test Framework (UTF) and made comparisons.
In the example shown, the Test VI is called with 120 different inputs for the "test string in" control. The total processing time for this 120 test is about 2 seconds.
test vi with vi under test
The following problem has presented itself:
when I examine the VI under test with the same test data set in UTF, LabView takes about 24 minutes to do it.
What am I doing wrong when using UTF? It seems to me that the VI under test is recompiled for each individual test case and the inputs and outputs of the VI are drawn using references.
Is there a way to massively increase execution speeds of UTF?
What experiences are here?
Is the UTF even designed to do over huntert of test coverage?
This LabView behavior is absolutely unacceptable. Why should I use the UTF if it robs me so massively of my lifetime? The implementation of unit test should be absolutely low-threshold. It should also not be possible for any software developer to find arguments against extensive test coverage. Processing times of 20 minutes and more are definitely an argument against carrying out good test coverage. What were the labview developers thinking during the implementation? One SubVi and a maximum of two or three testcases?
Thanks,
Uwe