Yikun opened a new pull request #32867:
URL: https://github.com/apache/spark/pull/32867
### What changes were proposed in this pull request?
Add path level discover for python unittests.
### Why are the changes needed?
Now we need to specify the python test cases by manually when we add a new
testcase. Sometime, we forgot to add the testcase to module list, the testcase
would not be executed.
Such as:
- pyspark-core pyspark.tests.test_pin_thread
- pyspark-pandas pyspark.pandas.tests.data_type_ops.testing_utils
Thus we need some auo-discover way to find all testcase rather than
specified by manually.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Add below code in end of `dev/sparktestsupport/modules.py`
```python
for m in sorted(all_modules):
for g in sorted(m.python_test_goals):
print(m.name, g)
```
Compare the result before and after.
https://www.diffchecker.com/gaMvbLmk
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]