-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Edited Discovery Logic #20631
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
Edited Discovery Logic #20631
Conversation
|
FYI one of your files doesn't pass Black formatting checks. |
This comment was marked as resolved.
This comment was marked as resolved.
pythonFiles/tests/pytestadapter/.data/error_parametrize_discovery.py
Outdated
Show resolved
Hide resolved
|
FYI this didn't pass Python type checking. |
brettcannon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some inconsistencies in various things (e.g. docstring formatting, application of typing, etc.). It's always good to read through your changes to make sure there's consistency. It helps with readability as people know what to expect, as well as productivity as people's brain can tune to what to expect, having to think less about how to process something.
2686923 to
c102dee
Compare
src/client/testing/testController/unittest/testExecutionAdapter.ts
Outdated
Show resolved
Hide resolved
src/client/testing/testController/unittest/testExecutionAdapter.ts
Outdated
Show resolved
Hide resolved
2962eb8 to
601affb
Compare
|
Running Running it using python.org python causes this error: We may have to figure out a different way to run these tests. May be just run them in a way we run them separately and collect data. Before running |
899676d to
6bf3eac
Compare
6bf3eac to
cd4ddac
Compare
|
These two errors on windows were hardest to debug: This is only on windows store python Looks like |
|
Thanks to @int19h we finally figured out what was going here. For any one ese that runs into this issue, basically USERPROFILE and SYSTEMROOT are required environment variables for python in windows. If it is missing it can cause errors like above. The |
inconsistencies have been address and verbal OK was given
closes #20078 and closes #20085 (which is about the testing work to support this code)
This logic now successfully works to discover the pytest repo tests. This branch takes into account all the previous comments made to the python discovery logic in the previous PR (located on my personal fork). Therefore this is a second round of edits on this code. It now works for the pytest library (discovers all the tests in the pytest library).