Open orj opened 7 years ago
I have the same problem. It happens when sonar tries to read TEST-report.xml. The same file read with the swift plugin doesn't break. There's a slight difference between the 2 versions of the SurefireParser.. Maybe it's linked somehow ?
Ok, i just tried replacing the SurefireParser from the Objc project with the one from the Swift project and it seems to work ok. As i didn't take the time to understand the underlying of it, i'm not going to create a pull request, but it did solve this particular problem.
We've been trying to track down the issues. It appears to be that the plugin makes some assumptions about file names. Ie, doesn't support .mm
test filenames and also assumes all underscores in suite names are replaced with +
symbols in filenames.
This means that getUnitTestResource
can return null
and on the second occurrence of this Sonar's saveMeasure
method throws.
My compatriot @cuva is looking into it further and we hope to provide back a pull request that works around some of these issues.
@MaximeArnstamm #34 should fix the issues mentioned above and a few more!
Hi,
It should be ok with plugin version 0.6.2.
Let me know.
Gilles.