zero9178 / C-Cpp-Coverage-for-CLion

Get coverage data in CLion using gcov or llvm-cov
MIT License
38 stars 2 forks source link

Viewing coverage for library targets #14

Open omertuc opened 5 years ago

omertuc commented 5 years ago

Is there anyway to view the coverage for library targets?

My target is a shared library that is called from a Python script. I want to run the Python script and see the resulting coverage of the C library being called.

Is that an option? How can I do something like that?

zero9178 commented 5 years ago

I do not think this is currently possible.

I have two ideas of solving this. Having a button to import coverage data manually and a task one can add to the before launch selection in a run configuration (similar to how CLion runs Tests and has prepare tests task). Hope that sounds good

I will try to implement those once some other stuff in the pipeline is done