04-03-2019 07:21 AM
Is it possible for the LabVIEW CLI to exit with 0 (zero) when executing Unit Test even though one ore more of the units test fails. It is a challenge when executing a multi stage pipeline that is running on a repository.
LabVIEWCLi -OperationName RunUnitTests ....
As I see it the LabVIEW CLi should only exit with a code different from zero if there is a Run Time error
04-04-2019 06:18 AM
Hi,
I found some information in KB that will be of use.
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019TwfSAE&l=en-GB
At the bottom of this page:
"Make sure that you are following the formatting in the Predefined Command Line Operations guide for the RunVI. A few things to remember:
Kind regards,
Michael
04-05-2019 04:32 AM
Hi Michael
In this case I am not in control of the return code because I am using a predefined command RunUnitTests
The Exit code from CLI should only be different from zero if there is a run time error, as I see it.
04-07-2019 01:04 PM - edited 04-07-2019 01:10 PM
Hi kjeld,
You can create the custom operation as mentioned here:
http://zone.ni.com/reference/en-XX/help/371361R-01/lvhowto/cli_creating_operations/
04-11-2019 01:14 AM
Hi
Yes I know that the possibility is there to make a custom operation; which also can be the next step, but we would like to use as much tooling out of the box so we doesn't have maintain it.