ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Test coverage in LabView Unit Test Framework

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

0 Kudos
Message 1 of 3
(2,851 Views)

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?

 

0 Kudos
Message 2 of 3
(2,780 Views)

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

0 Kudos
Message 3 of 3
(2,771 Views)