registry - Clover for integration testing -
i using clover generate coverage integration test coverage. clover db file(.db) in directory .clover
when running testcases, generates following files in .clover dir.
<clover3_1_6>.dbvayht_hke3br0q <clover3_1_6>.dbvayht_hke3br0q.1 <clover3_1_6>.dbkkhjl_hke66gs6.1 <clover3_1_6>.dbkkhjl_hke66gs6 <clover3_1_6>.db.liverec.
when try merge these , following error
error writing new clover db @ .clover/clover3_1_6.db": file ".clover/clover3_1_6.dbvayht_hke3br0q" not valid clover registry file (file magic number invalid - expected 0xcafefeed 0x3b4e0341). please regenerate.
i tried regenerate .db file , re-run test cases. when try clover-merge still fails , same error.
my clover merge target
<target name="merge-clover" description="clover database merge"> <clover-merge initstring=".clover/clover3_1_6.db"> <cloverdbset dir=".clover"> <exclude name="**/clover3_1_6.db.liverec"/> <include name="**/clover3_1_6.db*"/> </cloverdbset> </clover-merge> </target>
am missing here can me this?
files named like: "clover.dbsome_hash_code" or "clover.dbsome_hash_code.1"
(for example clover3_1_6.dbvayht_hke3br0q or clover3_1_6.dbvayht_hke3br0q.1)
are not clover database files - these coverage recording files , there no need merge them.
if try generate report pointing clover3_1_6.db, clover automatically find coverage recording files located in same directory , merge coverage data of them.
more information: https://confluence.atlassian.com/display/clover/managing+the+coverage+database
Comments
Post a Comment