Move all tests and service classes for test to separate module

GitOrigin-RevId: 277d91be9d83cf4df38c2193ac923c2de2da114c
This commit is contained in:
Stanislav Utikeev
2019-10-21 13:24:51 +03:00
committed by intellij-monorepo-bot
parent 5a2483751f
commit 192a0355ad
25 changed files with 23 additions and 4 deletions

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="intellij.platform.core" />
<orderEntry type="module" module-name="intellij.python.psi" />
<orderEntry type="module" module-name="intellij.python.psi.impl" />
<orderEntry type="library" name="kotlin-stdlib-jdk8" level="project" />
<orderEntry type="module" module-name="intellij.platform.core.impl" />
<orderEntry type="module" module-name="intellij.platform.projectModel.impl" />
<orderEntry type="module" module-name="intellij.platform.analysis.impl" />
<orderEntry type="module" module-name="intellij.platform.serviceContainer" />
<orderEntry type="library" name="JUnit4" level="project" scope="TEST"/>
</component>
</module>

View File

@@ -3,7 +3,6 @@ package com.intellij.openapi.vfs
import com.intellij.openapi.util.text.StringUtil
import java.io.*
import java.nio.charset.Charset
import java.nio.file.Files
private const val TEST_LOCAL_FS_PROTOCOL = "test_local"

View File

@@ -76,7 +76,7 @@ open class PyPsiTestCase : TestCase() {
protected var myPsiFile: PsiFile? = null
init {
System.setProperty(PlatformUtils.PLATFORM_PREFIX_KEY, "PythonPsi")
System.setProperty(PlatformUtils.PLATFORM_PREFIX_KEY, "PythonAnalysisTool")
val loadedPlugins = PluginManagerCore.getLoadedPlugins(PyPsiTestCase::class.java.classLoader)
myApplication.registerComponents(loadedPlugins)
myApplication.picoContainer.registerComponentInstance(FileTypeRegistry::class.java, myFileTypeManager)

View File

@@ -5,7 +5,6 @@
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/resources" type="java-resource" />
</content>
<orderEntry type="inheritedJdk" />
@@ -22,6 +21,5 @@
<orderEntry type="module" module-name="intellij.platform.projectModel.impl" />
<orderEntry type="module" module-name="intellij.platform.analysis.impl" />
<orderEntry type="module" module-name="intellij.platform.serviceContainer" />
<orderEntry type="library" name="JUnit4" level="project" scope="TEST"/>
</component>
</module>