Configuration to get unittest result from C++/Python test

I have a multi-languages project (C++ and Python mostly) that I need to be analyzed within SonarQube.

Basically, I have the following tree:

myproject/
  |_ <...>
  |_ module1
  |_ module2
  |    |_ submodule1
  |    |_ submodule2
  |         |_ test
  |              |_ test_submodule2_1.cc
  |              |_ test_submodule2_2.cc
  |_ test
  |    |_ subtest
  |    |    |_ test_submodule1.py
  |    |_ test_module1.cc
  |    |_ test_module2.cc
  |_ <...>

I recently decided to add the sonar.tests property in order to be able to see test results in SonarQube but not working.

Here is an extract of the related configuration:

sonar.cfamily.gcov.reportsPath=gcov-reports
sonar.cfamily.cppunit.reportsPath=cppunit-reports
sonar.python.xunit.reportPath="python-reports/*.xml"


sonar.inclusions=**/*.cc, **/*.cpp, **/*.c, **/*.h, **/*.py
sonar.exclusions=dependencies/**/*.*, build/**/*.*, examples/**, valid/**

sonar.tests=.
sonar.test.inclusions=**/test/**/*

Whatever the configuration I am trying, I get an execution failure as a result, with some java exceptions. Can someone help me to make a SonarQube configuration that will work please?

I am using SonarQube 8.5.1.

Thanks you!

Hi,

Welcome to the community!

First, your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

8.5.1 → 8.9.3 → 9.2.1 (last step optional)

You may find the Upgrade Guide helpful.

If your error persists after upgrade, please come back to us with the full analysis log, including the error stacktrace.

 
Ann