Joseph hooper
Joseph hooper

Reputation: 1047

Creating Junit Test With IntelliJ

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?

enter image description here

enter image description here

Upvotes: 4

Views: 5121

Answers (1)

Biraj B Choudhury
Biraj B Choudhury

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

Related Questions