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:

  |_ <...>
  |_ module1
  |_ module2
  |    |_ submodule1
  |    |_ submodule2
  |         |_ test
  |              |_
  |              |_
  |_ test
  |    |_ subtest
  |    |    |_
  |    |_
  |    |_
  |_ <...>

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.inclusions=**/*.cc, **/*.cpp, **/*.c, **/*.h, **/*.py
sonar.exclusions=dependencies/**/*.*, build/**/*.*, examples/**, valid/**


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!


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.