I did the following:
Went to http://openclover.org/doc/manual/latest/idea--installation-guide.html
I do not see coverage. I can confirm that no file is created in the .clover directory.
In order to get coverage, I have to change the Flush Policy. It doesn't matter what I change it to -- I just have to change it, then rebuild when prompted. When I do that, coverage shows up.
Then once I have coverage that shows up, when I click (disable) the "Toggle build with Clover" button, it is still compiling with instrumented code. So I get this compilation error in every instrumented class:
Error:(121, 2835) java: package com_atlassian_clover does not exist
The only way to get rid of this error is to change the Flush Policy (doesn't matter to what, I just have to change it). Incidentally, when I do this, I still see red/green/gray code highlights and gutter marks, even though the code is not instrumented.
FWIW, my settings are:
Preferences -> Clover (project settings)
Check "Enable Clover"
Compilation tab:
InitString --> Automatic
Flush Policy --> (doesn't matter)
Check "Instrument test source folders..."
Instrument lambda functions --> none
Rebuild Policy --> Ask
View tab
Refresh policy --> Manual
General --> Check "Show source highllights"
Per-test Coverage Data --> Check "Load per-test coverage data..."
Contexts tab:
Nothing here
Preferences -> Build, Execution, Deployment -> Compiler
Uncheck "Compile independent modules in parallel"
Clover has been never tested with Intellij IDEA 2018, so this may be some compatibility problem. Watch https://bitbucket.org/openclover/clover/issues/68/support-idea-2017-and-2018
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.