diff --git a/README.md b/README.md index 622651b..eb29af7 100644 --- a/README.md +++ b/README.md @@ -168,7 +168,7 @@ A generated IntelliJ Platform Plugin Template repository contains the following │ │ └── resources/ Resources - plugin.xml, icons, messages │ └── test │ ├── kotlin/ Kotlin test sources -│ └── testData/ Test data used by tests +│ └── testdata/ Test data used by tests ├── .gitignore Git ignoring rules ├── build.gradle.kts Gradle configuration ├── CHANGELOG.md Full change history @@ -255,7 +255,7 @@ The IntelliJ Platform Plugin Template project provides integration of two testin Most of the IntelliJ Platform codebase tests are model-level, run in a headless environment using an actual IDE instance. The tests usually test a feature as a whole rather than individual functions that comprise its implementation, like in unit tests. -In `src/test/kotlin`, you will find a basic `MyPluginTest` test that utilizes `BasePlatformTestCase` and runs a few checks against the XML files to indicate an example operation of creating files on the fly or reading them from `src/test/testData/rename` test resources. +In `src/test/kotlin`, you will find a basic `MyPluginTest` test that utilizes `BasePlatformTestCase` and runs a few checks against the XML files to indicate an example operation of creating files on the fly or reading them from `src/test/testdata/rename` test resources. > [!NOTE] > Run your tests using predefined *Run Tests* configuration or by invoking the `./gradlew check` Gradle task. diff --git a/src/test/kotlin/org/jetbrains/plugins/template/MyPluginTest.kt b/src/test/kotlin/org/jetbrains/plugins/template/MyPluginTest.kt index 3945372..4e61ced 100644 --- a/src/test/kotlin/org/jetbrains/plugins/template/MyPluginTest.kt +++ b/src/test/kotlin/org/jetbrains/plugins/template/MyPluginTest.kt @@ -8,7 +8,7 @@ import com.intellij.testFramework.fixtures.BasePlatformTestCase import com.intellij.util.PsiErrorElementUtil import org.jetbrains.plugins.template.services.MyProjectService -@TestDataPath("\$CONTENT_ROOT/src/test/testData") +@TestDataPath("\$CONTENT_ROOT/src/test/testdata") class MyPluginTest : BasePlatformTestCase() { fun testXMLFile() { @@ -35,5 +35,5 @@ class MyPluginTest : BasePlatformTestCase() { assertNotSame(projectService.getRandomNumber(), projectService.getRandomNumber()) } - override fun getTestDataPath() = "src/test/testData/rename" + override fun getTestDataPath() = "src/test/testdata/rename" } diff --git a/src/test/testData/rename/foo.xml b/src/test/testdata/rename/foo.xml similarity index 100% rename from src/test/testData/rename/foo.xml rename to src/test/testdata/rename/foo.xml diff --git a/src/test/testData/rename/foo_after.xml b/src/test/testdata/rename/foo_after.xml similarity index 100% rename from src/test/testData/rename/foo_after.xml rename to src/test/testdata/rename/foo_after.xml