Can't measure coverage using merged database

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

Several Clover databases created during instrumentation are merged into one. Next such merged database is used to run instrumented application. During application startup a following message appears:

ERROR: CLOVER: Unable to load coverage database.
ERROR: CLOVER: No coverage data will be gathered.
ERROR: CLOVER: com.cenqua.clover.registry.ReadOnlyRegistryException
ERROR: CLOVER: This database can only be used for reporting because it 
is the result of a merge. It does not support further coverage 
gathering.

 

原因

It is possible to merge several Clover databases into one in order to have a single coverage report. However, such merged database becomes 'read-only' and cannot be used for further code coverage gathering.

 

ソリューション

Use original non-merged databases for execution of application module(s).

 

Alternatively, it's possible to create a single database for several application modules during instrumentation and use just one database at runtime:

  • in Maven use the <singleCloverDatabase> parameter
  • in Ant setup Clover in master build file and make sure that inheritrefs="true" is used across ant calls.

 

最終更新日: 2012 年 12 月 8 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.