LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Unit Test parallel test for loop code coverage

When using LabVIEW 2013 Professional with LabVIEW Unit Test Framework Toolkit 2013 on Windows 7 Professional 32-bit, there seems to be an issue with the code coverage metric when using parallel for loops.  In my test, there is an array that is fed into a parallel for loop for processing.  When I run the unit test on the VI, I can't get 100% code coverage because of the for loop.  If I disable parallel execution in my for loop, the unit test framework gives 100% code coverage.  Does anyone know how to allow for parallel for loops while still getting 100% code coverage in the unit test framework? 

0 Kudos
Message 1 of 6
(3,407 Views)

Hi ductape1,

 

I am checking with our R&D team on this behavior. It may take them a few days to get back to me but I will post here as soon as I have an update.   

Catherine B.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 6
(3,368 Views)

It brings up a few interesting points to ponder.

 

Can you share how much the metric changes with a parallized loop? (does it resolve to 1 diagram or "P-1" that is uncovered?)


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 6
(3,360 Views)

Hi ductape1,

 

I have filed a Corrective Action Request for this issue (CAR# 475037). There currently isn't a timeline for fixing this issue, but you can use the CAR number to check whether this issue has been fixed/ 

 

Catherine B.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 6
(3,258 Views)

Catherine, thanks for the information!  I'm glad to know it wasn't just me having the problem.  

0 Kudos
Message 5 of 6
(3,243 Views)

Jeff, 

 

The metric just counts the parallelized for loop as one path, exactly the same as passing n=1, and the metric wants to count the looping of the loop as a path, so n=2 would be sufficient for 100% coverage. 

0 Kudos
Message 6 of 6
(3,241 Views)