Skip to content

LUnit

A LabVIEW Unit Testing Framework built on the xUnit unit testing industry standard and inspired by JKI VI Tester.

Prerequisites

To use LUnit you will need to have LabVIEW 2020 or later installed. As LUnit was developed using the LabVIEW Community Edition there is currently no support for older versions of LabVIEW.

Installation

The latest stable version is published at https://github.com/astemes/astemes-lunit/releases/. The release contains a VIPM package which is installed using VI Package Manager. LUnit will soon be available directly in VIPM.

Using LUnit

Once installed, LUnit is integrated into the LabVIEW development environment and the functionality is accessed through the Tools->LUnit menu. From the menu, you may create a new tests or open the LUnit UI to run tests. Tests may also be executed directly from the project explorer by right-clicking on a Test Case and selecting Run Test Case... from the menu.

Examples

There are a few examples installed with LUnit and these may be found through the NI Example Finder using the keyword LUnit. The examples are installed at C:\Program Files (x86)\National Instruments\LabVIEW 20XX\examples\Astemes\LUnit by default.

Documentation

Documentation is available on https://astemes.github.io/astemes-lunit/.

Is it free and open source?

Yes, absolutely! LUnit is released by Astemes under the MIT license. If you find it useful, please consider starring the project on GitHub.

Contribute

If you find LUnit useful, please consider starring the project on GitHub to let us know that you like it. If you find a bug, use the Issues section on GitHub. To take a more active role, please feel free to fork the project and make a pull request.