Every IDEA CE testcase fails with errors
Latest git codebase, trying to run IDEA testcases (editing in IU90.94), and couldn't run any of them. Failed with various errors (not assertions), most common is e.g. this one for com.intellij.find.findUsages.FindParameterTest:
java.lang.NullPointerException
at com.intellij.ide.plugins.IdeaPluginDescriptorImpl.insertDependency(IdeaPluginDescriptorImpl.java:504)
at com.intellij.ide.plugins.PluginManager.initializePlugins(PluginManager.java:203)
at com.intellij.ide.plugins.PluginManager.getPlugins(PluginManager.java:103)
at com.intellij.openapi.application.impl.ApplicationImpl.loadApplicationComponents(ApplicationImpl.java:296)
at com.intellij.openapi.application.impl.ApplicationImpl.<init>(ApplicationImpl.java:191)
at com.intellij.openapi.application.ex.ApplicationManagerEx.createApplication(ApplicationManagerEx.java:35)
at com.intellij.idea.CommandLineApplication.<init>(CommandLineApplication.java:57)
at com.intellij.idea.CommandLineApplication.<init>(CommandLineApplication.java:51)
at com.intellij.idea.IdeaTestApplication.<init>(IdeaTestApplication.java:33)
at com.intellij.idea.IdeaTestApplication.getInstance(IdeaTestApplication.java:56)
at com.intellij.testFramework.PlatformTestCase.initApplication(PlatformTestCase.java:122)
at com.intellij.testFramework.PlatformTestCase.setUp(PlatformTestCase.java:155)
at com.intellij.testFramework.ModuleTestCase.setUp(ModuleTestCase.java:46)
at com.intellij.testFramework.PsiTestCase.setUp(PsiTestCase.java:57)
at com.intellij.testFramework.PlatformTestCase$4.run(PlatformTestCase.java:476)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
I didn't configure anything else for a test case, nor do I remember any specific requirements in the instructions. Is it a bug or something misconfigured?
Please sign in to leave a comment.
For the time being, you need to run tests in the following way:
- the run configuration should use the depenedencies of module community-main
- the VM options should include -Didea.platform.prefix=Idea
Soon we plan to improve the test framework so that it will do the right thing by default and none of these steps will be required.
Also note that a very significant part of tests for CE functionality still resides in the UE codebase. We plan to move the tests over step by step.