11-29-2012 05:47 AM
Hi,
I developed and API and I want to make source distribution, however my build failes (error message is bellow) due to the error regrading the Unit Test Framework that I use to test my code. All Unit Tests are in the same folder called "UnitTests", that is part of a class. If I remove UnitTests folder from the class, source distribution is created as expected. I try to put the UnitTests folder to always excluded, but it doesn't help.
I use LV 2012.
Any ideas what am I doing wrong?
Thanks,
Andrej
Error message:
LabVIEW cannot find a file that is a dependency of a Startup, Exported, or Always Included VI.
File Not Found: The file at 'C:\Program Files (x86)\National Instruments\LabVIEW 2012\vi.lib\utf\dialogs\utf_defocus_trees.vi' was expected to have the qualified name 'NI_UnitTestFramework.lvlib:utf_defocus_trees.vi', but has the qualified name 'utf_defocus_trees.vi'.
The missing file might be referenced by one of the libraries included in the build or by the file - CircularBuffer.lvlib. To fix this issue:
- Open all Startup, Exported, or Always Included VIs, recompile them (CTRL+SHIFT Click the Run arrow) and save them to update their dependencies.
- Open all libraries included in the build and verify the existence and locations of referenced files. Also, try building with the additional exclusion option, "Remove unused members of project libraries", checked.
Solved! Go to Solution.
12-05-2012 09:57 AM
Can someone from NI please look into this. It is really annoying to remove unit tests from project every time you are building.
12-05-2012 10:40 AM
Hey,
I don't think it's a bug. Can you post a project where it results in the error?
Can you use the Unit Test Framework VIs other than in an application? (i.e. without building an application from your project)
12-06-2012 01:07 AM
Example project is attached.
If I use Unit Test VIs from another project, then I cannot test private VIs (which is not acceptable).
For now I just remove all folders that contains unit test VIs from the project and then I build the application.
12-09-2012 11:50 PM
Attached is a fixed version of utf_defocus_trees.vi. Put it in your <NI DIR>\LabVIEW 2012\vi.lib\utf\dialogs directory.
In addition, you might want to load/resave utf_test_properties_sub.vi to get rid of the dirty dot. This VI is located at: <NI DIR>\LabVIEW 2012\resource\framework\providers\utf.
12-10-2012 12:22 AM
Thanks reidl! Will this be fixed in the next patch/SP?
12-10-2012 12:28 AM
You're welcome! This will not make the cut-off for SP1, so unfortunately it will have to wait until the next official release of UTF (2013).