Problem with coverage test . IntelliJ Idea.
Answered
Hello , I have a big problem with IntelliJ Idea , I can't do this coverage tests.
I do all that I can , but it didn't help !
Please sign in to leave a comment.
Hello,
It's the known issue, please see the: https://youtrack.jetbrains.com/issue/IDEA-273142
Should be fixed in 2021.2.1 (will be available soon).
I can't open this link . Error 404 .
Ok , what do I should now ? Only wait new version ?
Hello,
Sorry, the issue occurred to be private, the fix will be available since 2021.2.1. Thank you
The same behavior occurs. As I see from release notes there is nothing mentioned about this issue.
Hello , I update MY intelia and I have error the same !!!!
https://youtrack.jetbrains.com/issue/IDEA-273142 it's not working !
Thank you, we are investigating the case.
Hello, Ilja_K . Looks like your TEMP directory path contains spaces, so IDEA tries to save a temporary file used by coverage to some place which path does not contain spaces, but can not find any. You can use one of the following options to provide a directory which path contains no spaces
You can pass system properties to IDEA in Toolbox->IDEA Settings ->Configuration->JVM Options
Hello, what is the state of the issue? I still have a problem in the version Build #IU-213.5744.223.
I have a log like below and I already tried to define it in idea.properties like this
Hello! Could you please make sure that `D:\Installed\coverage_lib` directory exists? If it does not help, could you please try to pass this setting as an option `-Djava.test.agent.lib.path=D:\Installed\coverage_lib` in the vmoptions file at the IDEA installation directory.
It haven't helped.
The message is the same. I tried to reinstall plugin and saw another errors in log. Anyway, why should I search for workarounds when you cannot fix it for months? Is it a surprise that your soft uses its own directory which contains spaces as a default when installing plugins?
Here is the log. And which library should I place in my directory? Perhaps, I chose the wrong one.
Do you have error messages in the output? Can you please share it? What runner do you use (Gradle, Junit)? If you see java command parameters as in the screenshots above, please share it too.
No. Tests are running successfully, but coverage window does not appear.
Thank you! Now I see the problem. The `java.test.agent.lib.path` option should be passed to the IDEA itself, not to the test java process. Please pass the directory option to IDEA in Toolbox->IDEA Settings ->Configuration->JVM Options. There is a file with options, add `-Djava.test.agent.lib.path=D:\Installed\coverage_lib` there, and restart IDEA.
Finally, it helped. Thank you