Hello everyone, I am a newbie to Jacoco. Currently I want to use Jacoco to dynamically track all the methods and classes that are called when performing some tasks.
However, Jacoco does not provide a direct reset command, which means that the output of the dump command will contain a lot of useless information, is there any way to clear the coverage history directly?
I built a REST API application for this, first, it connects to Jacoco Agent, when I request a certain endpoint of the REST application, it starts logging all the coverage information (as it is), then, I visit another endpoint , will stop logging and export coverage information.
The problem is that I can't guarantee that no code will be executed when I start recording coverage information. So I need to manually remove the interference.
Any suggestions?