you did not include a case where two or more test classes are included in the same file. This will likely result in the second class test results not being imported at all into sonar. My pull request would still import the test results, however it would import a virtual file along with it.

This use case, would result in a new Rule. One test class per file. Which was also implemented in a older pull request.