custom code coverage data view
Answered
after run code with coverage, CoverageViewSuiteListener#afterSuiteChosen popup the coverage window,now I want custom the window data(like add column)。 Is there a easy way to override the afterSuiteChosen event ?
Please sign in to leave a comment.
Provide custom implementation from com.intellij.coverage.CoverageEngine#createCoverageViewExtension
thank you!
is there another way I can get no coverage class data, now I found SourceLineCounterUtil#collectNonCoveredClassInfo.
com.intellij.coverage.CoverageSuite#getCoverageData
this class do not have classData, but coverageViewWindow has line info 。like this :
total line = 7 ,how to get this class's classData or lineDataArr.
Hello, I am currently doing plug-in development, com.Intellij.Coverage.CoverageEngine this class I can't quote, how do I refer to?
Xujunhua555 Coverage is a plugin, so you must add dependency on it. Plugin ID = 'Coverage' https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
In my plug-in project JavaCoverageEngineExtension reference is less than the class, I see JavaCoverageEngineExtension this class's jar package is in the ideac - 2018.3.6 - source. In the jar, How do I import this JAR
Yann Cebron
It seems you didn't apply all necessary steps given in referenced documentation page.