Lovegiver
Lovegiver

Reputation: 451

Where is Test folder in IntelliJ

I'm sorry for such a question but I'm new to IntelliJ (and Gradle, that is used in the project I'm working on), but where exactly is the Test folder located ?

When I display the 'Project structure' window, here's what I can see :

enter image description here

But what I can really see in the project tree is the following :

enter image description here

In fact, I don't understand what I see. Do the Test folders exist ?

Can someone tell me how to add a Test folder from the 'Project structure' window and how to say Gradle where test classes are located ?

Thx

Upvotes: 0

Views: 584

Answers (1)

Andrey
Andrey

Reputation: 16381

Do the Test folders exist ?

No it does not exist on your disk. See the "red" highlighting of the core/src/test directory in the project structure on your 1st screenshot.

You can create it from Project tool window. In fact IDE will automatically propose you the directories that you can create according to the Gradle source sets configuration of your project:

enter image description here

enter image description here

See also https://intellij-support.jetbrains.com/hc/en-us/community/posts/206806425/comments/360001477800

Upvotes: 2

Related Questions