How can be unit tests execution cancelled?

Asked by Tedi Roca

Is there any way to stop the execution of unit tests? It is very annoying to have to quit the application each time the execution is hanged.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

already tried the interrupt hot key defined at Sikuli startup?

Should be alt-shift-c (at least with Sikuli X in Windows)

Revision history for this message
Tedi Roca (tedi-roca) said :
#2

Yes, this works to be able to return to the IDE view but then the unit tests sidebar does not show the Run button anymore

Revision history for this message
RaiMan (raimund-hocke) said :
#3

I just made a test and found you are right (the test continues to run in background).

You should report a bug.

possible workarounds:

--1. the unit test is apparently running in a subprocess, that is not signaled to stop, when the IDE abort key is pressed. So if you find out how to kill the subprocess, then this might be easier ???

--2. use the native Python unittest feature in the IDE. This runs in the IDE foreground and is stopped by the abort key

Can you help with this problem?

Provide an answer of your own, or ask Tedi Roca for more information if necessary.

To post a message you must log in.