Andreas Radauer
Andreas Radauer

Reputation: 1123

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

Upvotes: 2

Views: 431

Answers (1)

Andreas Radauer
Andreas Radauer

Reputation: 1123

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

enter image description here

Upvotes: 1

Related Questions