How to exclude test files in code coverage dashboard?

Hello All,
I am working on one project in which my code coverage is shown as 46.9%, But in my console it is showing around 91.32%,
As I opened the coverage in detail it is showing that my test files are also included with 0.0% coverage, I want to exclude those files. I have all my test cases inside test folder, and that test folder is inside src folder.
Sonar version is 6.7.7

My Sonar property file:



Please help me on that. Thank You.

Found the solution, Just I have added
It will exclude all files with .test.js extensions and that’s what is want.

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