Reputation: 451
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 :
But what I can really see in the project tree is the following :
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
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:
See also https://intellij-support.jetbrains.com/hc/en-us/community/posts/206806425/comments/360001477800
Upvotes: 2