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 4 months ago

MichaelHuth commented 5 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 4 months 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 4 months 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 4 months ago

Ok I moved it.

Garados007 commented 4 months ago

LGTM

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