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

Not all tests get recognized #18359

Closed
TylerLeonhardt-alt opened this issue Jan 25, 2022 · 7 comments
Closed

Not all tests get recognized #18359

TylerLeonhardt-alt opened this issue Jan 25, 2022 · 7 comments
Assignees
Labels
area-testing bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@TylerLeonhardt-alt
Copy link

TylerLeonhardt-alt commented Jan 25, 2022

Testing #18349

I have two test tiles sometest.py and someasdfasdftest.py but only one test file gets discovered. You can see my test options on the right.

image

I'm not a python pro so I might be holding it wrong, is this expect? Both files contain essentially:

import unittest


class TestSum(unittest.TestCase):

    def test_sum(self):
        self.assertEqual(sum([1, 2, 3]), 6, "Should be 6")

    def test_sum_tuple(self):
        self.assertEqual(sum((1, 2, 2)), 6, "Should be 6")

if __name__ == '__main__':
    unittest.main()

if I delete someasfdasdftest.py then the tests in sometest.py are recognized.

Ubuntu 20.04

cc @TylerLeonhardt

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jan 25, 2022
@karthiknadig karthiknadig added area-testing bug Issue identified by VS Code Team member as probable bug triage and removed triage-needed Needs assignment to the proper sub-team labels Jan 26, 2022
@paulacamargo25
Copy link

Hi @TylerLeonhardt-alt can you please run the discovery command in your terminal and copy the output? does it show you any error?

@TylerLeonhardt-alt
Copy link
Author

TylerLeonhardt-alt commented Jan 27, 2022

I don't see anything besides:

> conda run -n base --no-capture-output python ~/.vscode-insiders/extensions/ms-python.python-2022.0.1753204050-dev/pythonFiles/testing_tools/unittest_discovery.py . *test.py

someasdfasdfasdfasdftest:TestSum2:test_sum2:6
someasdfasdfasdfasdftest:TestSum2:test_sum2_tuple:9

note: that I swapped the name of the files when I came back to this issue...

@paulacamargo25
Copy link

Thanks @TylerLeonhardt-alt i was able to reproduce the issue

@paulacamargo25
Copy link

This is caused due to conda/conda#10972, the problem is that conda fails at quoting command parameters, and it is getting preprocessed value.

@paulacamargo25 paulacamargo25 removed their assignment May 10, 2022
@github-actions github-actions bot removed the needs PR label Aug 9, 2022
@karrtikr karrtikr added the needs PR Ready to be worked on label Aug 9, 2022
@eleanorjboyd
Copy link
Member

@paulacamargo25 what is the status on this? If this is testing than it should probably be fixed on the re-write but would be good to know either way.

@eleanorjboyd eleanorjboyd added the info-needed Issue requires more information from poster label Oct 4, 2023
@eleanorjboyd
Copy link
Member

@paulacamargo25, following up on above, thanks

@eleanorjboyd eleanorjboyd reopened this Oct 30, 2023
@github-actions github-actions bot added triage-needed Needs assignment to the proper sub-team and removed needs PR Ready to be worked on labels Oct 30, 2023
@karthiknadig karthiknadig removed the triage-needed Needs assignment to the proper sub-team label Oct 30, 2023
Copy link

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.

Happy Coding!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 30, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-testing bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

5 participants