Hi,

You can also get coverage info for the C++ code as well. For this you need
to build impala with -codecoverage, i.e.
buildall.sh <your usual flags> -codecoverage

You can use this script to generate a report:
https://github.com/apache/impala/blob/master/bin/coverage_helper.sh

Please note that in some environments you might need to apply a small code
change to get code coverage for every file, see details here:
https://github.com/apache/impala/blob/a47700ed790c2415e52a85e40063bed53a7cb9e8/be/src/common/init.cc#L223-L231

- Zoltan


On Sat, Mar 6, 2021 at 1:43 PM Quanlong Huang <huangquanl...@gmail.com>
wrote:

> I think we only have code coverage info for FE. You can get it by
> adding -DcodeCoverage when running mvn test, e.g. (pushd fe && mvn test
> -Dtest=PlannerTest -DcodeCoverage)
> The report is in this dir: $IMPALA_HOME/logs/fe_tests/coverage. See more in
> this JIRA: https://issues.apache.org/jira/browse/IMPALA-3572
>
> On Thu, Mar 4, 2021 at 10:24 PM Xianqing <hexianqing...@126.com> wrote:
>
> > Hi All,
> > Does anyone know the code coverage information of Impala or where can I
> > see this information?
> > Thank you!
>

Reply via email to