Skip to content

Commit

Permalink
fix:quickfix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed Apr 28, 2024
1 parent 6b876f7 commit 772ff0d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/kotlin/com/dsoftware/ghmanager/psi/ProjectStartupTest.kt
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
package com.dsoftware.ghmanager.psi

import com.dsoftware.ghmanager.toolwindow.executeSomeCoroutineTasksAndDispatchAllInvocationEvents
import com.intellij.codeInsight.navigation.openFileWithPsiElement
import com.intellij.openapi.components.service
import com.intellij.psi.PsiManager
import com.intellij.testFramework.TestApplicationManager
import com.intellij.testFramework.common.initTestApplication
import com.intellij.testFramework.junit5.RunInEdt
import com.intellij.testFramework.junit5.TestApplication
import com.intellij.testFramework.rules.ProjectModelExtension
import com.intellij.testFramework.useProject
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.RegisterExtension


@RunInEdt(writeIntent = true)
//@TestApplication
class ProjectStartupTest {
init {
initTestApplication()
Expand All @@ -22,6 +27,12 @@ class ProjectStartupTest {
@RegisterExtension
protected val projectRule: ProjectModelExtension = ProjectModelExtension()

@AfterEach
open fun tearDown() {
executeSomeCoroutineTasksAndDispatchAllInvocationEvents(projectRule.project)
TestApplicationManager.tearDownProjectAndApp(projectRule.project)
}

@Test
fun `testScanWorkflowFile workflow-file is scanned`() {
val content = """
Expand Down

0 comments on commit 772ff0d

Please sign in to comment.