Search code examples
spring-bootintellij-ideacode-coverage

Is it possible to use "Run With Coverage" in IntelliJ without a test?


I'm working with IntelliJ 2020.3. Coverage is working fine for our Unit Tests. But I want to have a running Spring Boot Application, then call some rest calls against my local machine and see the coverage. But that’s not working, coverage dialog is showing but its 0% for everything.

Is it possible to run the coverage not for a test?

Thanks


Solution

  • We found the solution: It's not working if you just stop the server. You have to use exit it.

    enter image description here