mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
[IntelliJ Platform Gradle Plugin] Add JUnit4 dependency to examples
This commit is contained in:
parent
9f79a681a3
commit
834c45f09a
@ -22,6 +22,7 @@ It also includes methods for adding [plugins](#plugins) (including bundled), [Je
|
|||||||
- target IntelliJ IDEA Community %ijPlatform%
|
- target IntelliJ IDEA Community %ijPlatform%
|
||||||
- add dependency on the bundled Java plugin
|
- add dependency on the bundled Java plugin
|
||||||
- add IntelliJ Plugin Verifier, Marketplace ZIP Signer CLI, and code instrumentation tools
|
- add IntelliJ Plugin Verifier, Marketplace ZIP Signer CLI, and code instrumentation tools
|
||||||
|
- add JUnit4 test dependency
|
||||||
- add Test Framework for testing plugin with JUnit4
|
- add Test Framework for testing plugin with JUnit4
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
@ -43,9 +44,10 @@ dependencies {
|
|||||||
zipSigner()
|
zipSigner()
|
||||||
instrumentationTools()
|
instrumentationTools()
|
||||||
|
|
||||||
testFramework(TestFrameworkType.Platform.JUnit4)
|
testFramework(TestFrameworkType.Platform)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
testImplementation("junit:junit:4.13.2")
|
||||||
// other dependencies, e.g., 3rd-party libraries
|
// other dependencies, e.g., 3rd-party libraries
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -200,6 +202,8 @@ dependencies {
|
|||||||
intellijPlatform {
|
intellijPlatform {
|
||||||
testFramework(TestFrameworkType.Platform)
|
testFramework(TestFrameworkType.Platform)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
testImplementation("junit:junit:4.13.2")
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user