Successfully reported this slideshow.
Upcoming SlideShare
×

Ni week 2019 - LabVIEW Unit Testing Outlook & Tutorial

10 views

Published on

Péter Bokor and Barnabás Reischl took part in National Instrument’s biggest event, the NI Week, in Austin, Texas. They presented and compared potential unit-testing tools – including our product, InstaCoverage – for the LabVIEW programming environment.

Published in: Engineering
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Ni week 2019 - LabVIEW Unit Testing Outlook & Tutorial

1. 1. Advanced Unit Testing LabVIEW Code / instacoverage.io
2. 2. LabVIEW Unit Testing Outlook & Tutorial
3. 3. Advanced Unit Testing LabVIEW Code / instacoverage.io Peter Bokor InstaCoverage team lead at IncQuery Labs Barnabas Reischl InstaCoverage engineer at IncQuery Labs
4. 4. Advanced Unit Testing LabVIEW Code / instacoverage.io Unit Testing – Why?
5. 5. Advanced Unit Testing LabVIEW Code / instacoverage.io Correctness & Completeness Test your SW for correctness (common sense, V model etc.) EXAMPLE Divide(6,3) = 2 PASSED Test your SW for completeness/”coverage” (ISO etc.) EXAMPLE Divide(6,0) = 0 FAILED Test your SW units (divide and conquer/modularity) EXAMPLE Add(3,Divide(6,0)) = 3 FAILED (‘Add’ or ‘Divide’ failed?)
6. 6. Advanced Unit Testing LabVIEW Code / instacoverage.io A LabVIEW example Challenge 1: write test for critical (“cover critical”) Challenge 2: measure that critical is tested
7. 7. Advanced Unit Testing LabVIEW Code / instacoverage.io Coverage ▪ Avoid untested code ▪ Prove reachability (no “dead code”) ▪ Required by ▪ Standards, e.g., ISO 26262 ▪ Companies
8. 8. Advanced Unit Testing LabVIEW Code / instacoverage.io Unit Testing LabVIEW code – Tool options
9. 9. Advanced Unit Testing LabVIEW Code / instacoverage.io Unit testing tool alternatives for LabVIEW
10. 10. Advanced Unit Testing LabVIEW Code / instacoverage.io MEMS Mics Test – Running example
11. 11. Advanced Unit Testing LabVIEW Code / instacoverage.io
12. 12. Advanced Unit Testing LabVIEW Code / instacoverage.io TBMP 280 – Configure.vi @myRIO DUT configure in-range clock rate configure out-range clock rate Setup TEST CASE TEST CASE expected = no error + chip ID expected = error Teardown TEST CASE TEST CASE COVERAGE <100%Unit test VI under test
13. 13. ISSUE [COVERAGE]: Not reproducible
14. 14. Advanced Unit Testing LabVIEW Code / instacoverage.io Demo – InstaCoverage