05-19-2025 01:02 AM - edited 05-21-2025 12:27 AM
Hi there,
I'm getting started with unit testing in LabVIEW using the Caraya Framework. I want to integrate both software-only and hardware-dependent test cases into one test suite. In other programming languages, there’s typically a way to skip test cases if certain conditions aren’t met - in my case, if the hardware is unavailable.
I’ve been unable to figure out how to skip test cases in Caraya, and I can’t find anything in the documentation. So far, I’ve tried using an Assert with a "skipping" label or not calling an Assert at all, which results in an "unknown" status. However, the Report window clearly shows a "Skipped" category:
Does anyone know how to properly use the "Skipped" category in Caraya?
Labview: Version 18.0.1f4 (32-bit)
Caraya Unit Test Framework v1.4.4.148
05-19-2025 02:50 AM
Hey Simon,
after doing some research, I couldn't find any way. I suggest asking here again.
Regarding your use case, I think using that skipped number for the result report is not crucial. I would simply make sure, that only the tests are being called, which can run without the hardware. You could even create two different top level wrappers "Tests with Hardware" and "Tests without Hardware" to make that visible to the report.
Cheers
Alexander
05-20-2025 03:03 AM
Thanks! Then I will create an Issue. Seems odd to me integrating that feature in the Report UI without being implemented.