Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

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
  • 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
  15. 15. Advanced Unit Testing LabVIEW Code / instacoverage.io Quo vadis InstaCoverage? – Roadmap
  16. 16. Advanced Unit Testing LabVIEW Code / instacoverage.io NIWeek (May 20-23) 2019 CLA Summit (Apr 2-4) GDevCon (Aug 21-22) past* planned < May 31 past* planned NXG Classic May reverse Apr 2 May 3 May reverse … … 2020 May reverse NI Europe (Nov 20-21) CoreNXG CoreClassic Pro ProNXG ProClassicCoreClassic ProNXGCoreClassic SUBMITTED BETA AT NIWEEK 2018 ProClassic CoreNXG … *details at instacoverage.io

×