Skip to content

Commit

Permalink
Merge branch 'development' into arksap2002/bugs/fix-exception-during-…
Browse files Browse the repository at this point in the history
…run-all
  • Loading branch information
arksap2002 committed Jan 22, 2024
2 parents 3cc265b + 4d1ea00 commit 793f702
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,13 @@ class TestCasePanelFactory(
updateUI()
}

/**
* Checks if the item is marked as removed.
*
* @return true if the item is removed, false otherwise.
*/
fun isRemoved() = isRemoved

/**
* Returns the indexes of lines that are modified between two lists of strings.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ class TopButtonsPanelFactory(private val project: Project) {
fun updateTopLabels() {
var numberOfPassedTests = 0
for (testCasePanelFactory in testCasePanelFactories) {
if (testCasePanelFactory.getError() == "") {
if (testCasePanelFactory.isRemoved()) continue
val error = testCasePanelFactory.getError()
if ((error is String) && error.isEmpty()) {
numberOfPassedTests++
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,6 @@
</extensions>

<projectListeners>
<listener
class="org.jetbrains.research.testspark.listener.TestGenerationResultListenerImpl"
topic="org.jetbrains.research.testspark.tools.TestGenerationResultListener"/>
<listener
class="org.jetbrains.research.testspark.listener.TelemetrySubmitListenerImpl"
topic="com.intellij.openapi.startup.ProjectActivity"/>
Expand Down

0 comments on commit 793f702

Please sign in to comment.