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

INFO message header missing when printed after abort #481

Open t-b opened 1 month ago

t-b commented 1 month ago
Function TestMe()

    INFO("abcd")
    Abort
End

gives

  Start of test "MIES with TestAB_LoadWave"
  Entering test suite "UTF_SweepFormula_PSX.ipf"
  Entering test case "TestMe"
  Encountered "Abort" in test case "TestMe" (UTF_SweepFormula_PSX.ipf)
  abcd
  Test case "TestMe" doesn't contain at least one assertion
  Leaving test case "TestMe"
  Failed with 2 errors
  Leaving test suite "UTF_SweepFormula_PSX.ipf"
  Test finished with 2 errors
    ▶ Encountered "Abort" in test case "TestMe" (UTF_SweepFormula_PSX.ipf)
    ▶ Test case "TestMe" doesn't contain at least one assertion
  End of test "MIES with TestAB_LoadWave"

but his is different from

•runwithOpts(testcase = "testme")
  Start of test "MIES with TestAB_LoadWave"
  Entering test suite "UTF_SweepFormula_PSX.ipf"
  Entering test case "TestMe"
  0: is false. Assertion "CHECK(0)" failed in TestMe (UTF_SweepFormula_PSX.ipf, line 1047)
    ⓘ abcd
  Leaving test case "TestMe"
  Failed with 1 errors
  Leaving test suite "UTF_SweepFormula_PSX.ipf"
  Test finished with 1 errors
    ▶ Assertion "CHECK(0)" failed in TestMe (UTF_SweepFormula_PSX.ipf, line 1047)
  End of test "MIES with TestAB_LoadWave"

for

Function TestMe()

    INFO("abcd")
    CHECK(0)
End