This project demonstrates how the API of InstaCoverage can be used to implement Jenkins-based continous integration (CI).
This GitHub repository hosts our example LabVIEW project and the following link points to our demo Jenkins server:
We made the following commits to the repository to demonstrate a typical CI workflow:
-
In the first step (after the initial commit) we created the demo project which is a simple calculator project without unit tests.
-
In the second step we added a unit test for the calculator VI but code coverage being under 100% makes the test fail.
-
In the third step we fixed the test coverage (made it 100%) but the new test case discovered a bug in the implementation (divide by zero).
-
In the fourth step we fixed the implementation error, which means that all tests are PASSED. As a result, the build displays a healthy (green) state.