code coverage for external library via intellij
Answered
HI
My project has few external libraries that is developed by 3rd party vendor.
I have test written in our project which uses above libraries.
Currently when I try to get code coverage I don't see those packages for adding in "Code coverage tab"
Can you help me with this issue
Please sign in to leave a comment.
Packages are not included in the UI (as normally people don't bother about coverage of the libraries) but you may include them manually editing the table entry. Please note that this will enable highlighting of covered lines in the editor iff library has attached sources otherwise IDE will ignore it.
Anna
Anna Kozlova I am facing a similar issue. After running with code coverage, my IDE shows the highlighted line coverage in the UI for external libraries. However, it does not include the coverage percentages (Class %, Method %, Line %, Branch %) in the coverage report for the external packages.
How can I view the coverage report for the external packages?
@... There is no such feature. Please create a request on YouTrack: https://youtrack.jetbrains.com/newIssue?project=IDEA
Thanks for letting me know Konstantin Annikov. I created a request: https://youtrack.jetbrains.com/issue/IDEA-265741
Please let me know if there is any other information I can provide.