Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable the auto discovery of unit-tests in Visual Studio Code Python Module

Working on a big project with ms-python.python module of VS-Code, I have to wait for a long time for the unit-test discovery after saving any changes. Also discovering all unit-tests consumes much power on laptop. Is there any way to disable auto discovery and call it just whenever adding a new test (or remove a one)?

like image 875
mtoloo Avatar asked Dec 01 '25 06:12

mtoloo


1 Answers

Click on the settings as shown in the image

Click on settings

"python.unitTest.autoTestDiscoverOnSaveEnabled": false

And add this line to your PROJECT SETTINGS

This would disable the autotest discovery on every change in your project workspace.

like image 174
Harshavardhan Reddy Avatar answered Dec 04 '25 13:12

Harshavardhan Reddy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!