Oleksandr Tarasenko
Oleksandr Tarasenko

Reputation: 597

How to add custom directory to "Tests" scope in Intellij IDEA?

I'm working with Ant project, where I've added "test" directory near "src" directory. IDEA does not understand, that all classes in this directory are test classes. I want to make IDEA understand this, so it will propose to generate "Test Method", in respective "Generate" menu, for example, like it does in Maven's test directory. So, how can I make it happen?

Upvotes: 0

Views: 53

Answers (1)

Oleksandr Tarasenko
Oleksandr Tarasenko

Reputation: 597

Found out how to make it. The user has to open File -> Project structure -> Modules -> Sources Tab, select the directory he wants to make test directory and mark it as test directory using "Tests" button above directory tree.

It works in Intellij IDEA 2016.

Upvotes: 1

Related Questions