How to set 2 package as test folders

Template for a good new topic, formatted with Markdown:

  • ALM used GitHub
  • CI system used Jenkins
  • Languages of the repository Java

How to set 2 folders as sonar test folders? In our project, we have different types of tests and we would like to add those as part of our sonarcloud.

ProjectRoot
----src
-------main
-------test
-------IntegrationTest

At present sonar is validating main& test, we want to add integrationTest as well, can someone help with this

Thanks,
Jay

What build tool are you using (Maven, Gradle, Ant…)?

Gradle

Great. Let me suggest you take a look at the documentation for the SonarScanner for Gradle > Passing manual properties / overriding defaults