简体   繁体   中英

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?

在此输入图像描述

在此输入图像描述

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM