I have set [Clover]-[Enable on this project]. Eclipse shows a Clover icon on the project and `Main.java` in the package explorer.
I have cleaned and rebuilt the project.
I have run `Main.java` from [Run With Clover As]-[Java Application] in the context menu of package explorer.
`Main.java` is successfully executed and there are no error messages in the console or the Problems view.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.