How to remove a class from run with coverage mode.

Answered

I accidentally hit on "Run with Coverage" button, and now one of my class is not runnable. I tried to create a new project, delete the class file and create a new class file with the same name but nothing works. How can I fix this?

0
6 comments

What do you mean not runnable? Please share the screenshot of the run configuration and the class in the editor.

0
Avatar
Permanently deleted user

0
Avatar
Permanently deleted user

All other classes have a little green play button to run. But the set class doesn't have it. And it shows errors everywhere.

0

Your class has syntax errors reported by the javac compiler. Unless you fix these errors you will be not able to compile and run it. The issue has no relation to coverage.

0
Avatar
Permanently deleted user

No, nothing is wrong with the syntax or the code. I'm pretty sure because I know what I'm doing and it was fine before I hit that button.

0

If you are sure that the syntax is fine, please share your project so that we can verify it: https://intellij-support.jetbrains.com/hc/articles/206869619.

0

Please sign in to leave a comment.