What does test file names mean in generic test execution format

Hi,

I use the scanner to import test reports and coverage reports. When i have surefire reports and jacoco reports that’s fine and i see my data in sonaqube IHM.

But I run some tests thanks to JMeter and I would like to generate generic test execution reports related to these JMeter tests. The goal is to see these tests status and durations in Sonarqube UI.

The generic test execution reports is quite simple so I should be able to generate a report for each JMeter test file.

But I wonder what does test file names mean in the context of generic test execution reports ?

The JMeter files are my tests sources files but they are not JUnit tests files and they are not located in a folder listed in the sonar.tests properties.

Is the test file name something like a free field that can contain any value or is there constraints on it ?

Thanks for any help,

I looked to these questions but did not find my answer:

Bernard

Hey there.

It is required that the file element is a file that is indexed by some combo of sonar.tests and sonar.test.inclusions.

I’m not particularly familiar with JMeter files, but at a glance it looks like they’re XML files. .jmx may need to be added to the XML file suffixes configuration.

Hi,
Thanks for your answer Coiin, the idea to add jmx file to suffixes configuration is great, i will try it.

I get more details here : [how to upload generic test execution report in a sonarqube server? - Stack Overflow](https://how to upload generic test execution report in a sonarqube server?)

If I may, this link provides the context of my question : How to unify an unit tests and system tests indicator

Where could find documentation about suffixes configuration ? I found this : Narrowing the focus with an analysis scope .
It suggests to use `sonar..file.suffixes.

I guess that i have to define the whole list plus jmx. But what is the default value for java ?
(I looked in the project settings->backgroun tasks but did not find the information.)

If you go into your global / project settings and go to Languagues > [Language] you’ll find all the defaults.

Ok thanks.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.