LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Caraya Unit Tests with Jenkins

I am trying to implement a CI server (Jenkins at the moment) to automatically run Caraya unit tests.

 

At the moment I am struggling to work out a way of automating the running of the unit tests.

 

I can see that there is a CLI for Caraya which would be an option, but as far as I can tell it requires all the tests to be in the same folder. At the moment I am storing my tests in a Tests folder in each library or class that I have made. I suppose I could keep a text file with a list of all these folder locations or try and generate it programmatically but I can see that easily missing tests.

 

Ideally I want to be able to use Caraya tool which searches a project for all tests. I can do this programmatically using something like the VI below, which could be set as run on startup and then be called from the command line. This doesn't work though because it has to be openned from the project which I don't think you can do from the command line.

 

caraya.png

 

Does anyone have any ideas on how to do this?

0 Kudos
Message 1 of 3
(842 Views)

Went and had a cup of tea and found this in the JKI pallete.

 

Searches a folder rather than a project (literally under the VI I used in my last post)

caraya.png

0 Kudos
Message 2 of 3
(828 Views)

@Worle wrote:

 

 

I can see that there is a CLI for Caraya which would be an option, but as far as I can tell it requires all the tests to be in the same folder. At the moment I am storing my tests in a Tests folder in each library or class that I have made. I suppose I could keep a text file with a list of all these folder locations or try and generate it programmatically but I can see that easily missing tests.

 

 


Turns out I was wrong about this. It doesn't require the tests to be in the same folder and it will search through the entire directory to find tests. This seems to be working well with Jenkins now!

0 Kudos
Message 3 of 3
(782 Views)