Mark Multiple Directories as Test
已回答
I need to be able to mark multiple directories as “test”, im talking like 30+ in a single project, matching on a directory name like .*test. Can I add in regex to the .iml file to mark all directories, in whatever directory level of the project, as a test? Is there a way to make this a default setting for IntelliJ across all projects?
请先登录再写评论。
You can ctrl+click to select multiple directories and mark them as test sources here:
Another option would be to manually edit iml file. Patterns are not supported.
groooooooooss. so I have to go trough the GUI and mark each “test” directory as a test? this sounds like a job for some sed regex if thats the only option.
Or you can use Maven/Gradle for your project and configure your tests folders in the build file.