04-17-2024 01:08 AM
I am currently working on niDMM driver, and it doesn't have a .lvproj file but LLB file which contains the subvi's. Now, I need to run Unit test on those VIs and I am not sure how to do it? Can someone explain this step by step?
Solved! Go to Solution.
04-17-2024 01:33 AM
04-17-2024 01:39 AM
It's part of my assignment to build VI for pxi 4065. And run Unit test on all of its SubVI.
Will I be able to test these VI's using LLB manager. Could u please break this down for me?
04-17-2024 01:47 AM
Hi tan,
the LLBManager is a tool to manage LLBs. You can:
Once you moved the VIs out of the LLB you can do anything you like with those VIs…
Recommendation: move all VIs inside this LLB into a folder of the same name as the LLB. NI did this for many of their own LLBs (as can be seen in VI.lib).
Question: do you really need to "unit test" subVIs of the hardware driver? Which kind of test do you want to apply on them?
04-17-2024 04:30 AM
As Gerd already mentioned "unit test" may not be the right term of what you want to do. Unit tests are typically testing the functionality of software libraries and functions without relying on external hardware. It's to test that the software modules perform as needed, and to have a reconfirmation after you modified the modules, that they still perform as before. External hardware dependencies makes unit tests very brittle to develop and use. You are more likely doing a functional test or a system test.