-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Clarification on how to Run .test Files? #17687
Comments
There's some docs on how to run tests at https://github.com/python/mypy/blob/master/CONTRIBUTING.md#running-tests, and more detailed documentation at https://github.com/python/mypy/tree/master/test-data/unit#tests (which is linked to from the first link). I think putting this information in |
Thank you, Alex. It seems that i miss some important information, i will try it later. You're so kind, hope you have a good day :)! |
you too!! |
@AlexWaygood I hope you're doing well! I have a follow-up question regarding .test files in the MyPy project. Specifically, how can we identify the corresponding test/test_xx.py file and the related test suite for a given .test file? For example, in the MyPy CONTRIBUTING.md example (pytest mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test), how would we determine that check-dataclasses.test is linked to mypy/test/testcheck.py and TypeCheckSuite? Thank you for your help! |
I believe you use the prefixes of the test files. E.g. all test files starting with |
Oh, i got it! Thanks again :)! |
Documentation
I'm familiar with running Python test files using commands like pytest test_xx.py and running unit test cases with pytest testXxxx. However, I am unclear about how to execute tests in files with the .test extension. We couldn't find any documentation related to this. Could you please provide guidance on the correct approach or command to run these .test files?
The text was updated successfully, but these errors were encountered: