This VI Tester add-on contains a simple Text Test Runner class that outputs test results in JUnit XML format that is supported by the Jenkins build automation tool for reporting on unit tests via the Jenkins JUnit plugin
You can download and install the JUnit XML TestResults package with VI Package Manager.
The way to use this package is shown in the example.
Show the package in the palettes:
Open the example (with the white icon on the right side)
You can see how this would allow you to create a VI that (1) runs all the tests in your LabVIEW project and (2) outputs the results to a specific location that Jenkins is looking for Test Results.
You can pass this XML file to Jenkins as the Test Result:
<testsuite name="TestSuite">
<testcase classname="Queue TestCase" name="test Queue Reference is Valid" time="0.0089998245239258"/>
<testcase classname="Queue TestCase" name="test Queue Size is Zero" time="0.013999938964844"/>
</testsuite>
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
To contribute to Caraya, you will need 32-bit LabVIEW 2009 SP1 professional development environment.
JUnit XML TestResults for VI Tester is an open source project maintained by JKI.
JUnit XML TestResults for VI Tester is distributed under the open source three clause BSD license providing everyone right to use and distribute both souce code and compiled versions of the tool. See LICENSE file for details.