12-10-2024 04:22 AM
I have set up a CI/CD system for our LabVIEW projects that, among others, runs static code analysis via the VI Analyzer. I have created user defined Tests. LabVIEW expects these to be located in C:\Users\usernameDocuments\LabVIEW Data\VI Analyzer Tests. Is it possible to make user defined VI Analyzer tests a part of the Project they are used in instead?
12-10-2024 06:43 AM - edited 12-10-2024 06:47 AM
Hi,
As far as I know, user-specified tests can only be in the "LabVIEW Data" folder.
What you want might be possible though if you create a generic test called "Execute Project-Specific Tests", which, when first called, will scan the folder of the owning project, load the specific test VIs that satisfy a certain formalism (location, name, connector pane, ...) and call them dynamically. Then, each subsequent call should use the VI references in memory directly to avoid loosing the scanning and loading times again.
I am not sure in which context (application) the VI analyzer VIs are executed, but you have to make sure it is possible to retain VI references between consecutive calls of your generic test.
Regards,
Raphaël.
12-10-2024 11:32 AM
You can put subdirectories in the "VI Analyzer Tests" and they will show up in the tree in the VI analyzer, which might help you sort things out: