“Could not find or load main class @tag” error when running my tests from IntelliJ IDE
Answered
I am trying to run my tests using a Junit configuration , in IntelliJ IDE. I am setting up the configuration and I insert my VM options , into which I am using a tag to run specific tests. When I click on the "Run" button I get the following error: ""Error:Could not find or load main class @tag" I have no clue what is wrong.Has anyone encountered the same issue?
Something I have observed is that although when entering the VM options I keep a single line for every argument, the tag expression goes into the next line after saving my configs.


Please sign in to leave a comment.
Hello,
If possible can you please share the sample project to reproduce the case on our side, you may create an issue in YouTrack (https://youtrack.jetbrains.com/issues/IDEA) and attach the project there or upload it here: https://uploads.services.jetbrains.com/ and share the link.
Thank you