I know that in idea I can choose coverage runner on Run/Debug configuration like this:
but then I select class in tree I see the following menu:
And I cannot configure coverage runner here.
Is it possible to configure coverage runner tool to use by default?
To calculate the code coverage percentage, simply use the following formula: Code Coverage Percentage = (Number of lines of code executed by a testing algorithm/Total number of lines of code in a system component) * 100.
In Run Configurations, at the bottom of the left side, there is a Defaults section. In there, you can set the default coverage runner for each type of run. It looks like you're using JUnit above, so select JUnit, then the Code Coverage tab. Choose your coverage runner. Each new run configuration will now use that coverage runner. Pre-existing run configurations won't be changed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With