Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to parse my junit report using sonar.genericcoverage.unitTestReportPaths #17

Open
KangyiZengVizio opened this issue Apr 11, 2018 · 0 comments

Comments

@KangyiZengVizio
Copy link

KangyiZengVizio commented Apr 11, 2018

Hi,
I have some difficulties of uploading the junit.xml file through sonar.genericcoverage.unitTestReportPaths
Here are the samples of report:
<unitTest version="1"> <file path="..\Specs\common\utility_spec.js"> <testCase name="tUtility Service generateRandomRequestToken should match guid pattern" duration="0" /> or <file path="D:\Jenkins\workspace\test-sonarqub---c97e2b42\aaaaaa.Website.Tests\Javascript\Specs\.\ci-test_spec.js"> </file></unitTest>

And here is the error message:

unit test data ignored for 50 unknown files, including:
11:08:03 D:\Jenkins\workspace\test-sonarqub---c97e2b42\aaaaaa.Website.Tests\Javascript\Specs.\ci-test_spec.js
11:08:03 D:\Jenkins\workspace\test-sonarqub---c97e2b42\aaaaaa.Website.Tests\Javascript\Specs\common\utility_spec.js

I have uploaded the lcov file and sonar Coverage is working fine, and the sonarQube version is 6.0 could you tell me what`s the correct format of filepath?

If you need more information, let me know, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant