-
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
Testing - Test View for Python unittest
#17039
Comments
@alexr00 It looks like the test file detection is really fragile. For example if you specify searching for the pattern "*test.py", it will detect a file called "utest.py" but not with more than one character (for example "untest.py"). |
Tried your suggestion @gregvanl of naming the file utest.py, but it still doesn't work. |
I see that the file name is |
@alexr00 When the config settings are generated see if they look like this. If not, try and add this to
|
Verified |
I had tested with utest.py yesterday without success. Today I deleted everything in my folder, reloaded, and started over. Success. |
Refs: #15750
Complexity: 3
Create Issue
Requirements
"python.experiments.optInto": ["All"],
in your user settings. If you did not have it, add it and reload.Testing
unittest
code (name your filemy_tests.py
). Do not name itunittest.py
that will override theunittest
library:Python: configure tests...
command from the command pallet, or go the test view and configure by using the welcome view, or you can run tests to get a prompt to configure.unittest
framework.The text was updated successfully, but these errors were encountered: