Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

OpenClover doesn't work with Eclipse, Cov% is 0.0% after a run with Clover

Yusuke Sato December 4, 2021

Background

  • I am using OpenClover (4.4.1.v20191011233139) with Eclipse 2021-09 (4.21.0) on Windows 11 version 21H2.

What I did

Result

  • Cov% in the [Coverage Explorer] view remains 0%, and all the lines in `Main.java` are shown with red background color (no coverage).
  • I have clicked the reload icon on Coverage Explorer view, but no changes happened.
  • The property [Clover]-[Instrumentation]-[Instring] is `Default value`. A file `coverage.db` is created on the `.clover` directory on the project root, so I think there is no problem with the permission of the `.clover` directory.
  • The timestamp of `coverage.db` is the time when I have cleaned and rebuilt the project. So I think OpenClover didn't record coverage data into `coverage.db` when I ran ``Main.java` from [Run With Clover As]-[Java Application].

Question

How can I record coverage with OpenClover on Eclipse? Is there any misconfiguration for OpenClover in my environment?

1 answer

0 votes
zhaozq March 30, 2022

I have the same problem as you, Did you find a solution?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events