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

TEST_CASE_END user hook but no TEST_CASE_BEGIN user hook for skipped test cases #384

Closed Garados007 closed 1 year ago

Garados007 commented 1 year ago
#include "unit-testing"

Function TEST_CASE_BEGIN_OVERRIDE(string name)
    printf "hook begin: %s\n", name
End

Function TEST_CASE_END_OVERRIDE(string name)
    printf "hook end: %s\n", name
End

// UTF_SKIP
Function TestCase()
    print "test case"
    PASS()
End
•RunTest("Procedure")
  Start of test "Unnamed"
  Entering test suite "Procedure"
  hook end: TestCase
  Finished with no errors
  Leaving test suite "Procedure"
  Test finished with no errors
  End of test "Unnamed"