Failing tests are encountered when running the tests
Answered
Below, you can see the error message
Listeners leaked for interface com.intellij.openapi.editor.ex.FocusChangeListener:
[com.intellij.codeInsight.daemon.impl.EditorTracker$1@4c3a2bf6]
java.lang.AssertionError: Listeners leaked for interface com.intellij.openapi.editor.ex.FocusChangeListener:
[com.intellij.codeInsight.daemon.impl.EditorTracker$1@4c3a2bf6]
at org.junit.Assert.fail(Assert.java:89)
Please sign in to leave a comment.
Hi,
Please always provide the full context.
What is the target IDE type and version? What is the full stacktrace? What is the failing test implementation?
Hi,
The target IDE version = '2023.2.2' , Build: 232.9921.47
testImplementation('com.jetbrains.intellij.maven:maven-test-framework:232.9921.47')
testImplementation 'junit:junit:4.13.2'
implementation 'org.apache.maven:maven-artifact:3.6.3'
Initially, the IDE version was set to "2023.1.2," and the testFramework was set using the following dependency: testImplementation('com.jetbrains.intellij.maven:maven-test-framework:231.9011.34'). In this case, there were no issues in running the tests.
However, when I attempted to upgrade the IDE version to "2023.2.2" and the test-framework version “232.9921.47” , I encountered test failures.
Full stacktrace
The failing test implementation is 'com.jetbrains.intellij.maven:maven-test-framework:232.9921.47'
Do you create your own FocusChangeListener in your plugin? If yes, please share the code.
If not, it looks like a bug. Please report on https://youtrack.jetbrains.com/issues/IDEA with the information you provided here. Select Subsystem: Editor.
No I haven't created any in my plugin. I created the issue , here is the link : https://youtrack.jetbrains.com/issue/IDEA-334582/Failing-tests-are-encountered-when-running-the-tests
please review