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

Enable tests in background tasks #67

Open MichaelHuth opened 5 years ago

MichaelHuth commented 5 years ago

With solving #29 support for user tasks will be/was implemented.

We could allow to use test functions in these background tasks as long as the UTF is waiting for reentry through its own background monitor. The state for the UTF in this phase is the same as if the current test case is executed. So regular test function such as CHECK/WARN should directly work.

Specific care has to taken for use of REQUIRE from user background tasks where further test execution should stop.

Possible implementation:

Garados007 commented 1 year ago

CHECK statements do already work in background tasks which is shown in tests/TestResultsTests/ReentryTests.ipf (de58e8d (Add elaborate test cases for result waves, 2023-01-03)).