Recognize common tests marked with annotations typealiased to @Test

This commit is contained in:
Dmitry Jemerov
2017-09-07 18:26:53 +02:00
parent 6d30123c21
commit 1d05e83401
5 changed files with 83 additions and 2 deletions
@@ -20,6 +20,7 @@ import com.intellij.ide.highlighter.ArchiveFileType
import com.intellij.ide.highlighter.JavaClassFileType
import com.intellij.injected.editor.VirtualFileWindow
import com.intellij.openapi.module.Module
import com.intellij.openapi.module.ModuleUtilCore
import com.intellij.openapi.project.Project
import com.intellij.openapi.roots.FileIndex
import com.intellij.openapi.roots.ModuleRootManager
@@ -140,3 +141,6 @@ object ProjectRootsUtil {
val Module.rootManager: ModuleRootManager
get() = ModuleRootManager.getInstance(this)
val PsiElement.module: Module?
get() = ModuleUtilCore.findModuleForPsiElement(this)