Cannot run tests in IDEA with TestNG-J anymore

36 прегледа
Пређи на прву непрочитану поруку

t800t8

непрочитано,
11. 9. 2006. 23:08:3211.9.06.
– testng...@googlegroups.com
I tried to run tests by Ctrl + Shift + F10 and IDEA showed me 2 exceptions

First exception

[code]
com/intellij/execution/junit/ModuleBasedConfiguration
java.lang.NoClassDefFoundError: com/intellij/execution/junit/ModuleBasedConfiguration
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:72)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:68)
at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:49)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:34)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at com.theoryinpractice.testng.TestNGConfigurationType$1.createTemplateConfiguration(TestNGConfigurationType.java:41)
at com.intellij.execution.impl.RunManagerImpl.getConfigurationTemplate(RunManagerImpl.java:67)
at com.intellij.execution.impl.RunManagerImpl.createConfiguration(RunManagerImpl.java:192)
at com.intellij.execution.impl.RunManagerImpl.createRunConfiguration(RunManagerImpl.java:153)
at com.theoryinpractice.testng.TestNGConfigurationType.createConfigurationByLocation(TestNGConfigurationType.java:66)
at com.intellij.execution.actions.PreferedProducerFind.createConfiguration(PreferedProducerFind.java:15)
at com.intellij.execution.actions.ConfigurationContext.a(ConfigurationContext.java:31)
at com.intellij.execution.actions.ConfigurationContext.getConfiguration(ConfigurationContext.java:5)
at com.intellij.execution.actions.BaseRunConfigurationAction.update(BaseRunConfigurationAction.java:27)
at com.intellij.openapi.actionSystem.AnAction.beforeActionPerformedUpdate(AnAction.java:200)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:78)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.b(IdeKeyEventDispatcher.java:124)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:41)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:23)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:27)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
[/code]
Second exception

[code]
com/theoryinpractice/testng/TestNGConfiguration
java.lang.NoClassDefFoundError: com/theoryinpractice/testng/TestNGConfiguration
at com.theoryinpractice.testng.TestNGConfigurationType$1.createTemplateConfiguration(TestNGConfigurationType.java:41)
at com.intellij.execution.impl.RunManagerImpl.getConfigurationTemplate(RunManagerImpl.java:67)
at com.intellij.execution.impl.RunManagerImpl.createConfiguration(RunManagerImpl.java:192)
at com.intellij.execution.impl.RunManagerImpl.createRunConfiguration(RunManagerImpl.java:153)
at com.theoryinpractice.testng.TestNGConfigurationType.createConfigurationByLocation(TestNGConfigurationType.java:66)
at com.intellij.execution.actions.PreferedProducerFind.createConfiguration(PreferedProducerFind.java:15)
at com.intellij.execution.actions.ConfigurationContext.a(ConfigurationContext.java:31)
at com.intellij.execution.actions.ConfigurationContext.getConfiguration(ConfigurationContext.java:5)
at com.intellij.execution.actions.BaseRunConfigurationAction.update(BaseRunConfigurationAction.java:27)
at com.intellij.openapi.actionSystem.AnAction.beforeActionPerformedUpdate(AnAction.java:200)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:78)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.b(IdeKeyEventDispatcher.java:124)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:41)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:23)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:27)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
[/code]
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=42942&messageID=86065#86065

t800t8

непрочитано,
11. 9. 2006. 23:20:1511.9.06.
– testng...@googlegroups.com
Seems this is IDEA's bug. I'm using latest EAP build of IDEA 6 but in Plugin Manager, it shows me the latest version of TestNG-J is 0.2.4, this one is only for IDEA 5.x.

Now I installed TestNG-J 0.3.7 and everything works fine.


---------------------------------------------------------------------
Posted via Jive Forums

http://forums.opensymphony.com/thread.jspa?threadID=42942&messageID=86066#86066

Mark Derricutt

непрочитано,
11. 9. 2006. 23:27:5311.9.06.
– testng...@googlegroups.com
Good to hear its working.  The plugin manager seems to be playing up a bit in the recent EAPs (thankfully its starting to look decent again - now they need to make it work again ;p).
Одговори свима
Одговори аутору
Проследи
0 нових порука