I want to use IntelliJ IDEA Ultimate's "Run with Coverage" on a Spring Boot app to see which lines are executed during manual testing (e.g., hitting an endpoint with Postman).
My goal is to isolate the coverage from my specific interaction, completely ignoring the initial coverage generated during the application's startup. This is for manual analysis, not for automated tests.
When I use "Run with Coverage", the report is immediately cluttered with thousands of lines from the Spring Boot initialization process. This makes it impossible to see the coverage for just my manual API call. I've tried using the "Close Coverage Report" (trash can icon) in the Coverage tool window, but this seems to end the session rather than just resetting the data for the currently running process.
How can I get a "clean" coverage report that only contains the code executed by my manual actions after the application is already running?
For example, is there a way to:
"Reset" the current coverage data on the live application before I run my manual test?
"Start/Stop" the coverage recording at will?
Configure the runner to only start recording after the application is fully initialized?