mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2025-06-13 13:04:09 +00:00
fix: rename testData
to testdata
This commit is contained in:
parent
5ab9b3da63
commit
bb0807a61b
@ -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.
|
||||
|
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user