SonarQube and test files

Our SonarQube version 8.4.2

In the FAQ Frequently asked questions

It states that SonarSources don’t usually analyze test files.

Is it possible to configure SonarQube to behave the same or to configure SonarLint to analyze test files? On Eclipse SonarLint did in fact analyze the test files, but for the Intellij plugin it does not.

Hi Tom, welcome to the SonarSource Community!

This is a timely question; we just released SonarQube 8.5, which now includes a separate notion of code quality specifically for unit tests. Support has started for Java and Php. If those are one of your languages of choice, you might want to upgrade and have a look at fresh analysis results.

1 Like