File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
src/test/kotlin/com/intellij/plugin/powershell/testFramework Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,25 @@ package com.intellij.plugin.powershell.testFramework
3
3
import com.intellij.openapi.command.WriteCommandAction
4
4
import com.intellij.openapi.util.ThrowableComputable
5
5
import com.intellij.openapi.vfs.VfsUtil
6
+ import com.intellij.plugin.powershell.lang.debugger.PSDebugClient
6
7
import com.intellij.psi.PsiFile
7
8
import com.intellij.psi.PsiManager
9
+ import com.intellij.testFramework.TestLoggerFactory
10
+ import com.intellij.testFramework.junit5.fixture.disposableFixture
11
+ import org.junit.jupiter.api.BeforeEach
8
12
import kotlin.io.path.Path
9
13
import kotlin.io.path.createDirectories
10
14
11
- abstract class DebuggerTestBase : PowerShellTestBase () {
15
+ abstract class DebuggerTestBase : PowerShellTestBase () {
12
16
17
+ private val disposable = disposableFixture()
13
18
private val testData = " testData"
14
19
20
+ @BeforeEach
21
+ fun setUpDebuggerTestBase () {
22
+ TestLoggerFactory .enableTraceLogging(disposable.get(), PSDebugClient ::class .java)
23
+ }
24
+
15
25
protected fun copyAndOpenFile (nameRelativeToTestData : String ): PsiFile {
16
26
val fullName = " $testData /$nameRelativeToTestData "
17
27
val original = DebuggerTestBase ::class .java.classLoader.getResource(fullName)
Original file line number Diff line number Diff line change @@ -16,14 +16,10 @@ abstract class PowerShellTestBase {
16
16
get() = Path (project.basePath!! )
17
17
18
18
@BeforeEach
19
- open fun setUp () {
19
+ fun setUp () {
20
20
project = projectFixture.get()
21
21
}
22
22
23
- @AfterEach
24
- open fun tearDown () {
25
- }
26
-
27
23
@AfterEach
28
24
fun tearDownEdt () {
29
25
runInEdt {
You can’t perform that action at this time.
0 commit comments