intellij idea - How to configure the Coverage plugin to append coverage suites? -


coverage plugin intellijidea (going many releases). captures code coverage statistics given run configuration.

according documentation should able append results multiple runs either selecting default behavior or having intellij prompt settings before applying coverage editor.

but settings never seem applied. if choose prompted; i'm never prompted. if choose append them; they're never appended. 1 member on team says are prompted results not reflect choice.

i've tried can think of:

  1. manually changed settings coverage in workspace.xml file
  2. deactivated , reactivated coverage
  3. uninstalled , reinstalled coverage
  4. tried using other runners coverage (emma , jacoco)
  5. even uninstalled , reinstalled intellij hopes carrying around faulty settings previous install.

nothing works.

am missing obvious; how configure coverage append coverage suites? i'm thinking it's bug there perhaps workaround possible?

there's workaround doesn't involve appending suites , it's bit ugly.

i can't find way fix appending suites coverage applied run configurations. so, can if have existing suite want add to, can add run configuration , run coverage generate suite run.

what end number of suites have merge; merging functionality in coverage works. note no coverage suites appended; no new files generated. merges results coverage view allowing total report generated.


view merged coverage data:

  1. press ctrl+alt+f6
  2. choose 1 or more coverage suites merge
  3. click "show selected"

a view of merged suite data should appear in editor.


i'd recommend planning testing groups , time ensure complete set can finished without application shutting down; remember, once program stops, coverage results overwritten on next run. give each group own run configuration (you can limit coverage scope focusing on specific packages or classes) , merge them when when you're done running each. if results require more work you'll have create run configuration.

it's unfortunate issue , workaround but, on bright side, lead better organized , designed tests , results.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -