Skip to content

Run migrated LUnit tests in a Linux LabVIEW container and add them to CI pipeline - #186

Merged
shivaCode-2 merged 13 commits into
mainfrom
users/amrutha/lunit-tests
Nov 2, 2026
Merged

shivaCode-2 merged 13 commits into
mainfrom
users/amrutha/lunit-tests

Conversation

@Amruthasinchanag

Copy link
Copy Markdown
Collaborator
  • I do not require assistance from NI to complete any of the following checks.
  • The changes in this PR are based on the appropriate NI-repo feature branch
  • I am submitting the changes in this PR to the appropriate NI-repo feature branch
  • I built a VI Package using the Powershell build tool.
  • I installed the VI Package produced by the Powershell build tool and tested my change.
  • I tested my changes after installing the VI package.
  • NI has my contributor license agreement.

Summary of Changes

This PR continues the LUnit migration from #159 by running the migrated LUnit tests automatically in CI, inside the official Linux LabVIEW container.

The branch contains:

The workflow:

  • Uses nationalinstruments/labview:2026q1patch1-linux on ubuntu-22.04.
  • Installs VIPM 26.3.1-4025 (free edition) and uses it to install LUnit and LUnit CLI. No VIPM Pro activation and no repository secrets are needed, so the tests also run on PRs from forks.
  • Starts headless LabVIEW with the Actor Framework project open, waits for VI Server on port 3363, then runs the tests through LabVIEW CLI against that instance.
  • Fails the job unless the JUnit report shows at least 13 executed tests with no failures or errors.
  • Uploads the JUnit report and setup/test logs as artifacts for 7 days.
  • Can also be started on its own with workflow_dispatch.

Reason for Change

#159 moves the unit tests to LUnit but does not run them in a workflow.This PR runs them on every PR and push covered by ci.yml.

Visual Aids

Additional Information

  • The workflow installs LUnit with the free edition of VIPM.
  • Coverage: 64-bit LabVIEW 2026 on Linux only. It doesn't replace testing on Windows or 32-bit LabVIEW.
  • LabVIEW versions of the test sources: the test sources are saved in LabVIEW 2020, except Missing in Project.lvclass, which is saved in LabVIEW 2021 (it comes from Migrate from Caraya to LUnit for Unit Tests #159). LabVIEW 2020 users may not be able to open that class. CI loads the files in LabVIEW 2026 without saving them, so it doesn't change their versions.
  • Dependency versions: LUnit versions come from the current VIPM feed and aren't pinned.
  • Existing code: no test source code was changed. Apart from the new ci.yml job, existing workflows are unchanged.
  • Running these tests from any command line: the Missing in Project tests need the project open in LabVIEW. I confirmed this also happens with G-CLI (the runner the icon editor uses): run against the project path, the same 4 tests fail with error 1055.

Testing

Automated Tests

KSharma-NI
KSharma-NI previously approved these changes Oct 26, 2026
@KSharma-NI
KSharma-NI self-requested a review October 26, 2026 05:11
@Amruthasinchanag Amruthasinchanag changed the title Run migrated LUnit tests in a Linux LabVIEW container and add them to CI pipeline Run migrated LUnit tests in a Linux LabVIEW container and add them to CI pipeline( A test PR ) Oct 26, 2026
@Amruthasinchanag
Amruthasinchanag force-pushed the users/amrutha/lunit-tests branch from 46aea68 to 351282f Compare October 30, 2026 06:46
@Amruthasinchanag Amruthasinchanag changed the title Run migrated LUnit tests in a Linux LabVIEW container and add them to CI pipeline( A test PR ) Run migrated LUnit tests in a Linux LabVIEW container and add them to CI pipeline Oct 30, 2026
@shivaCode-2
shivaCode-2 merged commit 0ba2863 into main Nov 2, 2026
17 of 20 checks passed
@Amruthasinchanag
Amruthasinchanag deleted the users/amrutha/lunit-tests branch November 3, 2026 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants