Skip to content

migrating User PR to test branch: Fix broken unittest test discovery - #16703

Merged
Karthik Nadig (karthiknadig) merged 2 commits into
microsoft:test-uifrom
karthiknadig:user-pr
Jul 16, 2021
Merged

migrating User PR to test branch: Fix broken unittest test discovery#16703
Karthik Nadig (karthiknadig) merged 2 commits into
microsoft:test-uifrom
karthiknadig:user-pr

Conversation

@karthiknadig

@karthiknadig Karthik Nadig (karthiknadig) commented Jul 16, 2021

Copy link
Copy Markdown
Member

Julian Edwards (@bigjools) I have pulled in change from your PR to the test branch.
#16594

Closes #16576

Test discovery with unittest was not working at all. This is now fixed
with a more reliable method.  (Issue 16593)
Somehow I managed to typo such a simple change.
@karthiknadig
Karthik Nadig (karthiknadig) merged commit 87ad946 into microsoft:test-ui Jul 16, 2021
Karthik Nadig (karthiknadig) added a commit to karthiknadig/vscode-python that referenced this pull request Jul 23, 2021
…icrosoft#16703)

* Fix broken unittest test discovery

Test discovery with unittest was not working at all. This is now fixed
with a more reliable method.  (Issue 16593)

* Fix typo

Somehow I managed to typo such a simple change.

Co-authored-by: Julian Edwards <bigjools@gmail.com>
Karthik Nadig (karthiknadig) added a commit to karthiknadig/vscode-python that referenced this pull request Jul 26, 2021
…icrosoft#16703)

* Fix broken unittest test discovery

Test discovery with unittest was not working at all. This is now fixed
with a more reliable method.  (Issue 16593)

* Fix typo

Somehow I managed to typo such a simple change.

Co-authored-by: Julian Edwards <bigjools@gmail.com>
Karthik Nadig (karthiknadig) added a commit to karthiknadig/vscode-python that referenced this pull request Jul 28, 2021
…icrosoft#16703)

* Fix broken unittest test discovery

Test discovery with unittest was not working at all. This is now fixed
with a more reliable method.  (Issue 16593)

* Fix typo

Somehow I managed to typo such a simple change.

Co-authored-by: Julian Edwards <bigjools@gmail.com>
Karthik Nadig (karthiknadig) added a commit to karthiknadig/vscode-python that referenced this pull request Aug 2, 2021
…icrosoft#16703)

* Fix broken unittest test discovery

Test discovery with unittest was not working at all. This is now fixed
with a more reliable method.  (Issue 16593)

* Fix typo

Somehow I managed to typo such a simple change.

Co-authored-by: Julian Edwards <bigjools@gmail.com>
Kartik Raj (karrtikr) pushed a commit to karrtikr/vscode-python that referenced this pull request Aug 5, 2021
* migrating User PR to test branch: Fix broken unittest test discovery (microsoft#16703)

* Fix broken unittest test discovery

Test discovery with unittest was not working at all. This is now fixed
with a more reliable method.  (Issue 16593)

* Fix typo

Somehow I managed to typo such a simple change.

Co-authored-by: Julian Edwards <bigjools@gmail.com>

* Remove code lenses used in tests (microsoft#16200)

* Add test view with a welcome button (microsoft#16215)

* Add test view with a welcome button

* Register registerTestController only when available.

* Remove nosetest support (microsoft#16217)

* Remove nosetest support

* Fix enablement tests

* Update src/client/testing/common/xUnitParser.ts

Co-authored-by: Kim-Adeline Miguel <51720070+kimadeline@users.noreply.github.com>

Co-authored-by: Kim-Adeline Miguel <51720070+kimadeline@users.noreply.github.com>

* Remove navigation commands (microsoft#16276)

* Removing view test ui and view test output commands (microsoft#16298)

* Remove test picker (microsoft#16300)

* Remove more test commands (microsoft#16314)

* Remove select and run commands

* Remove commands from package json

* Remove more test commands (microsoft#16315)

* Remove testing dependency on language server (microsoft#16319)

* Remove old test code (only configuration remains)

* Use new Test UI API from VS Code

* Move test configuration

* Fix linting

* Add news items

* Ensure controller is disposed

* Tweaks to get testing working on stable.

* Remove empty file.

* Fix some sonar issues

* Fix issue with pytest crashing on discovery

* Add force refresh on interpreter change.

* Handle large number of FS events

* Simplify triggering test refresh on config change

* VS Code API change to support errored state

* Ensure skipped status is set on unittest tests

* Adding code review suggestions

Co-authored-by: Kim-Adeline Miguel <51720070+kimadeline@users.noreply.github.com>

* Fix package json encoding issue

* Fix bad package.json merge

* Fix issues with multi-root workspace runs

* Tweak multi-root support and failed test reruns

* Fix package json encoding

* Fix linting

* Add refresh and run failed icons

* Trigger discovery on settings change, and show discovery errors

* Fix encoding from windows-1252 to utf-8

* Better messaging when pytest is not installed

* Improve handling of failure expected and pass unexpected

* Add news items

* Add more news items.

Co-authored-by: Julian Edwards <bigjools@gmail.com>
Co-authored-by: Kim-Adeline Miguel <51720070+kimadeline@users.noreply.github.com>
@bigjools

Copy link
Copy Markdown

Do you know when this is likely to get released? Is there a test package I can use? (I use snaps on Ubuntu FWIW)

@karthiknadig

Copy link
Copy Markdown
Member Author

Julian Edwards (@bigjools) This wednesday (Sep 1 2021), See our release plan for more details #16930

You can use the insider build of the extension from here: https://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix

@bigjools

Copy link
Copy Markdown

Was this included? Test discovery is still broken in 1.6.0.

@bigjools

Copy link
Copy Markdown

Ah, never mind, I see it. There's other environment problems preventing imports from happening.

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