Clover registry file <path/to/clover.db> does not exist


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



Trying to generate a Clover report, but a following message is thrown:

Clover registry file <path/to/clover.db> does not exist, cannot be read or is a directory. 
Please ensure Clover has instrumented your source files. 
You may need to remove existing .class files for this to occur.


Clover registry file: <path/to/clover.db> does not exist.



Clover was not able find a Clover database at specified location. It means that:

1) either location is invalid

  • usually happens if you use relative path for initstring and compilation (and thus Clover instrumentation) is executed from one working directory, while report generation from another directory


2) or database is missing

  • it can happen when report is being generated on a different machine and the Clover database was not copied to this machine
    • for instance: Clover with Bamboo + multiple remote agents + build and reporting made in separate Jobs + clover.db is not defined as a shared artefact
  • it can happen when your build did not perform Clover instrumentation before running report generation
    • for instance: when your build have compiled sources without Clover first, next it called <clover-setup> but did not call "clean" target and next tried to compile sources again; as no sources were recompiled (no "clean"), no database was generated



Check if initstring path does not need to be corrected. Check if builds are running from a correct working directory.

In case when reporting is done on a different machine, check if clover.db (and coverage files!) was copied to the desired location.

In case when Bamboo with multiple remote agents is used and reporting is made in a separate job, share the clover.db (with coverage files) as a Shared Artefact.

Check if build executes "clean" before calling "clover-setup".

最終更新日: 2014 年 2 月 6 日


Powered by Confluence and Scroll Viewport.