byte-physics / igortest

Igor Pro Universal Testing Framework
https://docs.byte-physics.de/igor-unit-testing-framework/
BSD 3-Clause "New" or "Revised" License
7 stars 2 forks source link

Tagging with /// IUTF_EXPECTED_FAILURE results in error due to assertion count 0 #461

Closed MichaelHuth closed 12 months ago

MichaelHuth commented 1 year ago

See test ExportIntoNWB and output in history

image

Garados007 commented 1 year ago

This behavior is intended and was changed by 573c8f3 (Require UTF_EXPECTED_FAILURE to have errors, 2023-01-11).

Your error message is just saying that you need at least one failed assertion to let the test case succeed, when you use /// IUTF_EXPECTED_FAILURE.

If you want to create test cases which result is completely ignored you can mark them as _IGNORE anyway.

Garados007 commented 1 year ago

If the assertion count is really 0 then the error message would be something like this:

Test case \"%s\" doesn't contain at least one assertion
Garados007 commented 1 year ago

See also PR #377 and Issue #289.

MichaelHuth commented 12 months ago

Ok, that was not the correct approach for what I wanted to do.