XojoUnit icon indicating copy to clipboard operation
XojoUnit copied to clipboard

Is it possible to know if a Test Case is currently running ?

Open antoine2711 opened this issue 10 months ago • 1 comments

I have some methods that call MessageBox, which stalls the execution of the Test Cases.

Is there a way that my function could know if it is called while a Test Case is being executed?

Regards, Antoine

antoine2711 avatar Apr 12 '24 05:04 antoine2711

I can't think of a good way, but my recommendation would be to split up the functions to separate out the processing from the UI elements, then test just those functions.

FYI, you can use the included ObjectSpy to test private functions.

ktekinay avatar Apr 12 '24 13:04 ktekinay