Distributed Control & Automation Framework (DCAF)

cancel
Showing results for 
Search instead for 
Did you mean: 

DCAF Unit Test Framework

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

0 Kudos
Message 1 of 4
(5,262 Views)

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.

Cheers,

Matt Pollock
National Instruments
0 Kudos
Message 2 of 4
(5,253 Views)

Check out https://github.com/LabVIEW-DCAF/buildtest for an example of the bare-bones Jenksinfile needed by the build infrastructure.

Cheers,

Matt Pollock
National Instruments
0 Kudos
Message 3 of 4
(5,251 Views)

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.

Cheers,

Matt Pollock
National Instruments
0 Kudos
Message 4 of 4
(5,246 Views)