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
请先登录再写评论。
Try ModuleRootManager:
Try Project[Module]RootManager.getFileIndex().isIn[Test]Source()