06-18-2013 09:59 AM
Hi,
can somebody from NI confirm the following two statements about the Unit Test Framework:
1. The framework does not support "recursive coverage metrics", where the coverage considers sub-VIs that are executed in the VI under test.
2. 100% coverage means something weaker that common "branch coverage". For example, an "if" VI is a branch in the program but it is not considered as a branch by LabView's test coverage metrics.
Thanks,
Peter
07-03-2013 01:41 AM
Hi, could you clearify what you mean with "recursive testing"? When you define a unit test you test a programm with a given set of parameters. How do you implement a selfcalling VI?
Can you explain your request further?
07-03-2013 02:15 AM
Hello Johannes,
I'm interested in branch coverage of a VI under test.
Imagine a VI A that calls another VI B. If A is tested and LV's unit test framework reports 100% test coverage for A, it is possible that the test cases didn't visit all frames (branches) in B.
Now my question is: is it possible that LV thinks of A as "flattened" so that all code in B is considered as code of A?
Peter