Reputation: 1047
When I try to create a Junit test for certain classes in my project nothing happens when I hit OK. IntelliJ also doesn't give me the option to select a destination folder. Any suggestions?
Upvotes: 4
Views: 5121
Reputation: 684
It is pretty simple . Just right click on the desired Folder -> Mark Directory as -> Test Source Root
Now for any Code, just right click on the class -> Go to -> Test -> Create New test .
Now click Ok, you will the test is created in the folder which you have marked as test Source Root.
Upvotes: 10