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 function to unregister IUTFMonitor #466

Closed MichaelHuth closed 3 months ago

MichaelHuth commented 7 months ago
Function UnRegisterIUTFMonitor()

    DFREF dfr = GetPackageFolder()
    variable/G dfr:BCKG_Registered = 0

    CtrlNamedBackground $BACKGROUNDMONTASK stop
End

Sometimes within a test case one could decide to not to do reentry, but reentry is default setup in e.g. TEST_CASE_BEGIN.

t-b commented 7 months ago

If we add runtime skip support as suggested in #467, would we automatically unregister? I would think yes.

MichaelHuth commented 7 months ago

Yes, skip should unregister automatically. Still I think it would make sense to have that function callable from a TC.

t-b commented 3 months ago

Fixed via !469.