-
Notifications
You must be signed in to change notification settings - Fork 52
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
How to use Kover CLI to merge binary reports? #731
Comments
Hi, empty reports generated when no class-files are found.
it should be a root directory with compiled class files, and not a project or a module root. For example for typical Gradle project with single JVM module it will be Important thing that keys |
Much appreciated - I'll add these to my script and get back to you with any further questions. Thanks! |
Thanks again for your help here @shanshin - working through a few things and just getting back to this. I followed your guidance and I'm passing the parameters to
and to
And the binary reports I'm trying to merge ((These
But the merged report seemingly only takes in the first entry:
Any ideas on what I'm doing wrong here? |
If you merge all the |
Is there a problem that all coverage is 0 or that not all classes are present in the report? |
I unfortunately have to merge
The coverage information in the report seems to be somewhat accurate for the classes that are present, but yes the main problem is that not all classes are present. I unfortunately don't know how to read the binary format, could it be a problem with this merging command?
And
|
The binary Therefore, you need to double-check the correctness of all the paths that were specified via |
I've verified that the paths specified by
And the
Should I be passing a directory to Sorry for the confusion and thanks for your help! |
Root directories for each type are expected, i.e. directories that do not include package names, e.g. However, it is important that when calling CLI, the current directory points to the directory where |
So if I have a directory structure like:
I have to call the CLI from the |
By For example, let's say you have such directories:
In this case, you can specify |
Got things working - thanks so much for your help! |
Closed as answered |
We have 4 separate GHA jobs that generate coverage info.
I'm trying to use the Kover CLI to merge the binary reports from each of these jobs then create an XML report from that one to upload to our coverage reporting service.
In each job, I'm zipping the
*.ic
files and uploading them as an artifact, then after all these jobs complete, I'm running this script:The ending
cat
is there for testing purposes. This always results in an empty XML file:I'm for sure not passing the right
--classfiles
parameter, but what does this expect? From the documentation, I can't tell if it's supposed to be a combination of the generatedbuild/**/classes
Additionally, the
--src
I'm passing seems to be wrong as well, as I get this warning:The docs seem to indicate this should be a directory though.
Could I get some help in validating this is the right path forward using this tool?
The text was updated successfully, but these errors were encountered: