tk103331 / jacocogo

jacoco cli in golang
4 stars 1 forks source link

what is the use of anaylsis folder ? #1

Open AkashKumar7902 opened 6 months ago

AkashKumar7902 commented 6 months ago

@tk103331 my usecase is that, I need to get the line coverage percentage for each source file from .exec, How can I achieve this ?

and what is the use of analysis folder

tk103331 commented 6 months ago

You can try this to see if it is the result you want

jacocogo execinfo --execfiles jacoco.exec

AkashKumar7902 commented 6 months ago

@tk103331 the percentage can't be solely computed based on exec file, analysis of class files would be required. Do you plan to extend the cli tool to include report subcommand ?

tk103331 commented 6 months ago

I did indeed have plans to do that before. In order to do so, I even set up another project clazz specifically for analyzing class files. However, it didn't reach a usable state and has been abandoned.

AkashKumar7902 commented 6 months ago

@tk103331 I am currently working on extending this library with report subcommand using https://github.com/raskyer/asm as a class reader. My main goal for now is to generate report in csv format and analyze only class files, not gzip, zip, pack200. I would love to submit a PR and I would highly appreciate if you can test out and maybe extend with html and other formats if you have time.

tk103331 commented 6 months ago

Thank you for your work and looking forward to your PR.