-
Notifications
You must be signed in to change notification settings - Fork 76
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
Invalid test coverage reports with error: Invalid path part "/" #476
Comments
I have same issue.
Did you found a solution for this issue? |
Same issue with same message, except I'm uploading codeclimate.json with formatted gcov results
|
AFAIR: You need to exclude paths from outside of your code from the coverage report. |
Am having this as well when uploading xccov generated json results. Would really like to use this tool. update |
This seems to be a duplicate of #375. The solution there was to specify the |
The |
doesn't work me either |
You need to run the tests from the rootdir of the project. |
I have set up the test reporter to run as part of my CircleCI flow. I push a commit to github, and the CircleCI flow runs. The two relevant
run
blocks are as follows:This does successfully upload a report to CodeClimate, but when I view these reports, their state is shown as
invalid
. (See this page: https://codeclimate.com/repos/60f063e943e546014c02417e/settings/test_reporter) (Permission granted to log in to my account, if necessary: Yes.)Inspecting the details of a report shows the following:
The error seems to be that part of some path is just "/", which is not a valid path part. I do see that the
path
field of that json begins with two "/"'s:"//home/circleci/.pyenv/versions/3.9.7...
. This seems like the possible source of the problem, but I'm not sure where this path is coming from. The value of thispath
field seems to vary from test report to test report -- being a seemingly random file from within mypython3.9/site-packages
. This makes me wonder if the test reporter is somehow trying to report on coverage of every file in my site-packages?Any guidance / thoughts would be greatly appreciated! Thanks! And let me know if there is any more information you would like.
The text was updated successfully, but these errors were encountered: