How to check if a VirtualFile source file are from test or production dir?
Hi.
Is there an easy way to determine whether a source file was loaded from a test or production source directory when the source files are represented as VirtualFiles (as they are when one is implementing a FileProcessingCompiler)?
Kind regards
Christian
Please sign in to leave a comment.
Try ModuleRootManager:
Try Project[Module]RootManager.getFileIndex().isIn[Test]Source()