javamavenjunitcode-coverage

Fail to collect coverage for java maven projects with Intellij IDE


I wanted to collect coverage info, but the error message is "At least 5 arguments expected but 1 found." I'm using IntelliJ IDE and maven projects and the Junit test framework. enter image description here enter image description here

Also, I noticed that the path of the first argument includes illegal characters, which are not in English and are part of the user name of my computer.

Alternatively, when I switched to Jacoco coverage tool instead of the tool provided by Intellij, the problem was "File Not Found Exception", the path of the file contained illegal characters.

I also tried uninstalling and reinstalling Intellij.

I really do not know how to solve it; I would appreciate it if anyone could give me some help.

enter image description here

Now I configured Jacoco in the POM file for my maven project and ran maven commands to collect code coverage.


Solution

  • The only solution that I found is to rename windows user. It is a painful operation with modification of regisrty.

    Here is the instruction in Russian.

    https://zen.yandex.ru/media/tehnichka/kak-pereimenovat-papku-polzovatelia-v-windows-10-5ffc31e6fe4e686f6ab950f5

    May be you will find the same in English.