-
Notifications
You must be signed in to change notification settings - Fork 33
Command Line Interface
Using the Command Line Interface (>= version 1.0.0 build 62) requires the following format and modifiers:
<LabVIEW.exe path> <Caraya CLI path> -- <modifiers>
or launched in the context of a specific LabVIEW project:
<LabVIEW.exe path> <lvproj path> <Caraya CLI path> -- <modifiers>
- -s : Source Folder (MANDATORY)
- -x : Output File (MANDATORY)
- -r : Recursive (defaults to true if not specified)
- -v : Verbosity (defaults to false if not specified)
- -i : interactive (defaults to false if not specified)
Example #1: (Source folder: Caraya Assert Tests + Output file on desktop with JUnit XML format + Verbose = False)
C:\Program Files (x86)\National Instruments\LabVIEW 2014\LabVIEW.exe "C:\Projects\JKI\Caraya\src\Caraya CLI.vi" -- -s "C:\Projects\JKI\Caraya\src\tests\asserts" -x "C:\Users\<your username>\Desktop\All Tests.xml" -v 0
Example #2: (Launch the tests in the context of a specific project to capture the Conditional Disable tags as shown in issue #105).
"C:\Program Files (x86)\National Instruments\LabVIEW 2019\LabVIEW.exe" "C:\Projects\PathToMyProject\MyProj.lvproj" "C:\Program Files (x86)\National Instruments\LabVIEW 2019\vi.lib\addons\_JKI Toolkits\Caraya\Caraya CLI.vi" -- -s "C:\Projects\PathToMyUnitTests" -x "C:\Users\UserName\Desktop\All tests.xml" -v 0
- Example of extending the CLI Caraya utility: https://github.com/LabVIEW-Open-Source/Caraya-CLI-extension