We have made one build definition for TFS build for .net. In this build definition, we are using more than one Visual Studio build task and more than one Visual Studio Test Task. I have added Prepare SonarQube analysis configuration before any Visual Studio build task and also added Run Code Analysis task.
I am facing one problem after build completion. Sonar Qube site showing only Coverage for last Visual Studio Test Task. But I have multiple Visual Studio Test Task. In build summary page, it is showing sum of all Visual Studio Test Task. But In sonar site it is showing result only for last test task.
If I am making all test Task as one then it is working fine but it is not acceptable since test task based on different-different dll and easy to understand.
Can you please suggest what we need to do to resolve this issue.