03-08-2017 01:31 PM
When I spoke with you all at NI week, you were able to demonstrate a bare-bones template that allowed functional testing and/or unit testing of modules.
Do you have that template format available to download somewhere?
Can it be added to the github?
Thank you!
michael
03-08-2017 02:07 PM
It's been there for a while:
Package that enables running UTF tests in a project and outputting results to JUnit (suitable for consumption within Jenkins):
https://github.com/LabVIEW-DCAF/UTF-Test
Groovy script snippet that actually calls the UTF tests in a given project:
https://github.com/LabVIEW-DCAF/buildsystem/blob/master/vars/utfTest.groovy
Backend server infrastructure that the script is calling is currently stuck behind NI's perforce server, but I'm working with the code owner to publish it out to Github under the Apache 2.0 license. Basically a background executable that listens for web service calls from Jenkins asking it to do things.
I have a pair of sessions I'm doing at NI Week on DCAF's build system. All of the build infrastructure will be fully public and accessible for other projects to steal at that point.
03-08-2017 02:09 PM
Check out https://github.com/LabVIEW-DCAF/buildtest for an example of the bare-bones Jenksinfile needed by the build infrastructure.
03-08-2017 02:12 PM
Pipeline for builds is defined here:
https://github.com/LabVIEW-DCAF/buildsystem/tree/master/vars
dcafPipeline.groovy is the main call invoked from Jenkinsfiles, other scripts define substeps (including UTF).
We'll be extending the pipeline in the next few weeks to also do automated integration testing of DCAF component builds against a standard test application. That will just be matter of adding another substep script and invoking a test VI on a test node.