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

Add SKIP_TESTCASE and SKIP_TESTCASE_EXPECT_FAILS assertions #470

Closed MichaelHuth closed 1 month ago

MichaelHuth commented 2 months ago

Both assertion abort the current testcase. Any registered reentry function is unregistered.

When SKIP_TESTCASE_EXPECT_FAILS is called, previously failed assertions in the same testcase are treated as expected failures.

close #467

MichaelHuth commented 1 month ago

I did not change the order of the output, the output is just moved to an own function.

I added some tests that check if the TCs are correctly counted as skipped.

Garados007 commented 1 month ago

I am just curious. Wouldn't tests/TestResultsTests/EasyTests.ipf be a more fitting place for the tests than tests/Various.ipf?

MichaelHuth commented 1 month ago

Ok I moved it.

Garados007 commented 1 month ago

LGTM

@t-b It seems like you have to approve this PR as code owner