forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Be able to disable automatic test discovery on save #1037
Labels
Comments
DonJayamanne
added
feature-request
Request for new features or functionality
good first issue
needs PR
area-testing
labels
Mar 12, 2018
5 tasks
brettcannon
changed the title
Nose test discovery runs unnecessarily
Be able to disable automatic test discovery on save
Jun 11, 2018
Installed the latest build today to get this feature. Thanks guys. |
I use version 1.3.7, and don't see an option in vscode to cancel the automatic test discovery on save. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Environment data
Extension version (available under the Extensions sidebar): `2018.2.1
OS and version:
Python 3.6.3
venv
Steps to reproduce:
Python: Run Current Unit Test file
in the vscode command console. This will run the test discovery first and then launch your unit tests.Behavior/suggestion
Unit tests are discovered through nosetests whenever a test file is saved. This triggers a process that takes about 4 seconds for me. Since the tests must be discovered before they can be run, this makes it time consuming to make small changes to a test file.
One suggestion would be to have the option to disable the test discovery when a file is saved, and have an optional command to manually discover unit tests.
It's possible this behavior is coming from
src/client/unittests/main.ts:onDocumentSaved
, line 69const tests = await testManager.discoverTests(CommandSource.auto, false, true);
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)This is from the Python Test Logs window:
Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)This is probably irrelevant but I'll put it anyways
The text was updated successfully, but these errors were encountered: