Skip to content
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

Adjustments to Python test discovery #17

Merged
merged 1 commit into from
Jul 2, 2024
Merged

Conversation

mnoah1
Copy link
Collaborator

@mnoah1 mnoah1 commented Jul 2, 2024

Making a few tweaks to improve Python test case discovery in files, based on some initial user feedback:

  • Use selection range for positioning of arrows, so arrow lines up with the function header. The previous range value began at the start of any decorators or other content above the header.
    Example of adjusted positions:
    image

  • Let class names start or end with Test

  • Add a filter before returning that excludes classes containing no test cases. This will reduce noise in cases where the word Test is in a class name but it is not in fact a test.

@mnoah1 mnoah1 marked this pull request as ready for review July 2, 2024 14:30
@mnoah1 mnoah1 merged commit 2dca280 into main Jul 2, 2024
4 checks passed
@mnoah1 mnoah1 deleted the mnoah1/adjust-python-discovery branch July 2, 2024 17:39
@mnoah1 mnoah1 mentioned this pull request Jul 2, 2024
shuklahy pushed a commit that referenced this pull request Jul 2, 2024
## What's Changed
* Use readFile instead of openTextDocument for regex test case discovery
by @mnoah1 in #13
* Add getting started docs by @mnoah1 in
#12
* Adjust notifications during sync by @mnoah1 in
#14
* Show setup message when no targets returned from sync by @mnoah1 in
#15
* Adjustments to Python test discovery by @mnoah1 in
#17
* Add results from parameterized tests to parent by @mnoah1 in
#16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants