WUELUG - Würzburg LabVIEW User Group (DE)

cancel
Showing results for 
Search instead for 
Did you mean: 

Caraya Unit Test Framework - Skipping a Test Case?

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:

Screenshot 2025-05-19 073701.jpg

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

 

 

 

 

Edit: See https://github.com/vipm-io/caraya/issues/203

0 Kudos
Message 1 of 3
(113 Views)

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


Proud developer at Hampel Software Engineering where we turn '404 not found' into '200 OK'. Join us on Discord
0 Kudos
Message 2 of 3
(98 Views)

Thanks! Then I will create an Issue. Seems odd to me integrating that feature in the Report UI without being implemented.

0 Kudos
Message 3 of 3
(66 Views)