Skip to content

Conversation

@anthonykim1
Copy link

Fixed the new unittest discovery algorithm, where multiple classes and their unittest test cases were not detected (not shown in the UI).

Issue: TestNodes for classes (after the first class in a particular test file) were not getting recognized as different test node because there was not a unique ID for them. Path was getting passed into parameter in workspaceTestAdapter.ts, instead of uniqueID.

Solution: Added uniqueID attribute for both python and typescript side to generate appropriate id(in python side) for not only specific test case, but also for classes (which should also have been considered as a testnode).

@karthiknadig karthiknadig added the feature-request Request for new features or functionality label Jun 18, 2022
@karthiknadig karthiknadig added the skip tests Updates to tests unnecessary label Jun 21, 2022
@anthonykim1 anthonykim1 merged commit 0b6fc5b into microsoft:main Jun 22, 2022
wesm pushed a commit to posit-dev/positron that referenced this pull request Mar 28, 2024
* Add explicit type to errors list

* First pass at test execution (Python-side)

* How to swap to the new test adapter

* fix new discovery multiclass tests detection

* fix new discovery multiclass tests detection

* fix duplicate ids for testing treeNodes

* remove debugpy import

* fixing test_simple_discovery

* fix test_error_discovery, simple_tree

* fix test_no_existing_child_node and test_get_existing_child_node

* fix no_existing_child

* fix lint error

* fix no_existing str bad operation

Co-authored-by: Kim-Adeline Miguel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature-request Request for new features or functionality skip tests Updates to tests unnecessary

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants