Skip to content

Commit 8023855

Browse files
committed
(#291) Tests: run JUnit 5 tests
1 parent 3a21f63 commit 8023855

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ dependencies {
6767
pluginVerifier()
6868
}
6969

70+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1")
71+
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.8.1")
72+
7073
implementation(libs.bundles.junixsocket)
7174
implementation(libs.lsp4j)
7275
implementation(libs.lsp4jdebug)
@@ -138,6 +141,10 @@ tasks {
138141
defaultCharacterEncoding = "UTF-8"
139142
}
140143

144+
withType<Test> {
145+
useJUnitPlatform()
146+
}
147+
141148
withType<JavaCompile> {
142149
dependsOn(generateLexer, generateParser)
143150

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ junixsocket = "2.10.1"
55
lsp4j = "0.24.0"
66

77
[libraries]
8-
junit = "junit:junit:4.13.2"
8+
junit = "org.junit.jupiter:junit-jupiter-api:5.10.3"
99
junixsocket-common = { module = "com.kohlschutter.junixsocket:junixsocket-common", version.ref = "junixsocket" }
1010
junixsocket-native-common = { module = "com.kohlschutter.junixsocket:junixsocket-native-common", version.ref = "junixsocket" }
1111
lsp4j = {module = "org.eclipse.lsp4j:org.eclipse.lsp4j", version.ref = "lsp4j"}

src/test/kotlin/com/intellij/plugin/powershell/ide/run/PowerShellRunConfigurationTests.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import com.intellij.openapi.project.Project
99
import com.intellij.testFramework.junit5.TestApplication
1010
import com.intellij.testFramework.junit5.fixture.projectFixture
1111
import kotlinx.coroutines.runBlocking
12-
import org.junit.Assert.assertEquals
13-
import org.junit.Test
12+
import org.junit.jupiter.api.Assertions.assertEquals
13+
import org.junit.jupiter.api.Test
1414
import java.nio.file.Path
1515
import kotlin.io.path.Path
1616

0 commit comments

Comments
 (0)