Jump to content

Caraya Unit Testing with Jenkins


John Hoehner

Recommended Posts

Hello All!

I'm working on integrating the Caraya test framework into our CI process. As of now, we are using a Jenkins server to manage our builds, but I'm looking to add our Caraya unit tests to that equation. 

I'm relatively new to the CI world, but have a good amount of experience using Carayas built in test reporting functionality (the text report version). 

Ideally, upon unit test failure I would like to have the full report sent to the user via email showing them which unit tests did not pass. I know some of this is handled on the Jenkins side, but I'm more so curious about how to properly invoke the unit test VI within my project so that the results and report are available to Jenkins so they can then be emailed. 

Any and all insights here would be much appreciated. 

Thank you!

Edited by John Hoehner
Wrong Title!
  • Like 1
Link to comment
Share on other sites

John, check out "Test Runner Pre-build action.vi" in the 1.0 release. I'm not sure what the current version is on LVTN, but you can find 1.0 on GitHub: https://github.com/JKISoftware/Caraya/tree/release/1.0.0/src

The first snippet below is the Pre-Build action itself, the second is the actual guts of where the test gets invoked.

Let me know if that doesn't get you started in the right direction or you have more questions.

 

caraya test runner.png

Caraya Execute Tests.png

  • Like 2
Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.