Identify test file

Answered

How can I know if a specific file that is open in the editor is a unit test file or a non-test (i.e., production) file?

2 comments
Comment actions Permalink

com.intellij.openapi.roots.TestSourcesFilter#isTestSources  may helps you

0
Comment actions Permalink

Thank you for the quick reply! This seems to work!

0

Please sign in to leave a comment.