Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode: how to interrupt a running Python test?

I'm using VSCode Test Explorer to run my Python unit tests. There was a bug in my code and my tested method never finishes.

How do I interrupt my test? I can't find how to do it using the GUI. I had to close VSCode to interrupt it.

I'm using pytest framework.

like image 333
neves Avatar asked Aug 31 '25 06:08

neves


1 Answers

Silly me, here is the Stop button at the top right of the the Testing tab:

Test stop button

like image 189
neves Avatar answered Sep 02 '25 19:09

neves