What does it take to "Run with coverage"?

已回答

I can use some Maven plugin, but I'm still curious to know why IntelliJ's built-in test coverage tool doesn't work on my laptop

```

At least 5 arguments expected but 1 found.
'C:\Users\Ñåìüÿ\AppData\Local\Temp\coverageargs'
Expected arguments are:
1) data file to save coverage result
2) a flag to enable tracking per test coverage
3) a flag to calculate coverage for unloaded classes
4) a flag to use data file as initial coverage, also use it if several parallel processes are to write into one file
5) a flag to run coverage in sampling mode or in tracing mode otherwise

```

Is it an issue related to cyrillic characters in the path? Do I need to manually configure it before running?

0
正式评论
Hello,

Please follow the issue:

https://youtrack.jetbrains.com/issue/IDEA-285727/Code-coverage-arguments

Seems caused by a non-ascii path issue.

Could you also share the coverageargs file in this Temp folder?

Does it help if you add -Djava.io.tmpdir= (use a non-Russian path here) in the IDE main menu Help | Edit Custom VM Options and restart the IDE?

Hi Nad,
Please upload the log file collected via the menu Help > Collect logs and Diagnostic Data to https://uploads.jetbrains.com/  and paste the upload ID here.

0

2024_03_08_qGoGa4FtYFLCZz5t3gZqsv

0

Here's `coverageargs`: 2024_03_09_Kh9AiK5thDTtsibmSxxpqQ

0

As for your tip regarding custom VM options, it indeed helped. Thank you!

0

请先登录再写评论。