Reputation: 21245
In my maven project for some reason, even though the class and the test class are located in the same package, when I did Ctrl+Shift+T it says "No Test Class Found".
More importantly, when I right click on the test file, it only gives me the option to compile test, but not run test.
I'm able to run the tests successfully if I just do mvn clean install in command line.
Any idea?
Upvotes: 2
Views: 3240
Reputation: 40001
You need to mark the test files/directories as "Test Sources" in Project Settings -> Modules?
Upvotes: 6