Hi Jiang Wei! Thanks for your interest in Impala! In Impala we have various kinds of tests. End-to-end tests (EE tests, E2E tests) are run from Python against a running Impala minicluster. An example for EE tests can be found here: https://github.com/apache/impala/blob/c54d8ad4692768ff270947bc9a2f0f6fe629c701/tests/query_test/test_sort.py#L345 In addition, we often have unit tests in C++ or Java. In C++ we use the GoogleTest framework (e.g. https://github.com/apache/impala/blob/c54d8ad4692768ff270947bc9a2f0f6fe629c701/be/src/util/openssl-util-test.cc#L33). In Java we use JUnit (e.g. https://github.com/apache/impala/blob/c54d8ad4692768ff270947bc9a2f0f6fe629c701/fe/src/test/java/org/apache/impala/analysis/AnalyzeDDLTest.java#L71 ). Can you tell us more about the change you'd like to contribute? Maybe you already have a draft you can link to? We can then help you more concretely with what kind of tests would be good to include. Regards, Daniel
On Mon, Nov 4, 2024 at 12:48 PM JiangWei <jiangwei9...@gmail.com> wrote: > Hi IMPALA Dev Team, > In Contributing to Impala< > https://cwiki.apache.org/confluence/display/IMPALA/Contributing+to+Impala?src=contextnavpagetreemode> > ,said "Third, please include tests with your patch. If your patch does not > include tests, it will not be accepted. If you are unsure how to write > tests for a particular component, please ask on the impala-dev mailing list > for guidance." > So i want to know how to write tests for a particular component? > > Best regards, > Jiangwei > >