Latest IDEA Plug-in

19 views
Skip to first unread message

Nebiyu Yohannes

unread,
Mar 7, 2007, 3:46:19 PM3/7/07
to testn...@googlegroups.com
My co-workers updated to the latest Intellij/IDEA plug-in through IDEA's plug-in manager (they were prompted that their version of the plug-in was out of date), and were no longer able to run tests.

I backed up my old version of the plug-in, upgraded, and then experienced the same problem. With the new plug-in downloaded by the plug-in manager (appears to be version 1.0.0 according to the plugin.xml file), I'm not able to run newly created tests (I was executing a method using the plug-ins test runner) without clearing the existing test-output directory before every run. If I don't do this the compiled test class file is not found.

I reverted to the old plug-in (version 0.5.7) and this issue went away.

We are all on various versions of Intellij 6.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=69217&messageID=130382#130382

Mark Derricutt

unread,
Mar 7, 2007, 3:57:04 PM3/7/07
to testn...@googlegroups.com
Nebiyu,

This sounds strange - do you see any errors or exceptions at all?

Also - when you say test-output, are you referring to IDEAs test-classes output directory, or the TestNG output directory (test reports)?

Another also - does this happen on all projects or just one?

Jesse Kuhnert

unread,
Mar 7, 2007, 4:00:38 PM3/7/07
to testn...@googlegroups.com
I remember seeing this yesterday or so as well...For me the issue was
that testng wasn't running with a base directory relative to the right
path to find classes when it was running anymore. ..Changing this to
the right base directory when executing did fix it for me but it
doesn't seem necessary to make people think about this by default. (i
did say "seem" , being that I don't know how it works internally - but
assumedly there is enough contextual information available to make
finding all the classes not entirely impossible - esp the class you
are trying to test...)


--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Nebiyu Yohannes

unread,
Mar 7, 2007, 4:12:10 PM3/7/07
to testn...@googlegroups.com
The only exception I was seeing is the ClassNotFoundException from the test runner.

The test-output directory I was deleted was the TestNG output directory that contains the test reports.


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

http://forums.opensymphony.com/thread.jspa?threadID=69217&messageID=130389#130389

Nebiyu Yohannes

unread,
Mar 7, 2007, 4:15:57 PM3/7/07
to testn...@googlegroups.com
Jesse, what you are describing seems to be similar (if not the same issue) we are seeing.

We were about to play with the base directory (and other project settings) like you did, but after realizing the problem didn't happen if we reverted to the old plug-in we chose to do that instead.


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

http://forums.opensymphony.com/thread.jspa?threadID=69217&messageID=130390#130390

Jesse Kuhnert

unread,
Mar 7, 2007, 4:21:32 PM3/7/07
to testn...@googlegroups.com
I should clarify, this was on a project with a few sub-modules that
each had their own module specific class output directories specified
in the module settings area. (ok so maybe I do know more about the
internals than I let on, but I try not to remember what suffering the
maven reloaded plugin was putting me through..ie all functionality in
one method = whippeeeeeeeeeeeeeee .............. :/ ...)

Justin Lee

unread,
Mar 11, 2007, 2:59:29 PM3/11/07
to testn...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Yeah. I get CNFE on all my tests as well.

- --
Justin Lee
http://www.antwerkz.com
AIM : evan chooly
Skype : evanchooly
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)

iD8DBQFF9FGRJnQfEGuJ90MRA0QhAJ9z56i4eORwq3Am01Mhc7oWyBWzawCgueSq
qjxvBQqt63th0FoWpxP7V/k=
=2xgI
-----END PGP SIGNATURE-----

Mark Derricutt

unread,
Mar 12, 2007, 3:06:52 AM3/12/07
to testn...@googlegroups.com
Does this look like the exception/stacktrace:

org.testng.TestNGException:
Cannot find class in classpath: com.theoryinpractice.MyTest
    at org.testng.xml.XmlClass.getSupportClass(XmlClass.java:45)
    at org.testng.internal.Utils.xmlClassesToClasses(Utils.java:82)
    at org.testng.TestRunner.initMethods(TestRunner.java:255)
    at org.testng.TestRunner.init(TestRunner.java:201)
    at org.testng.TestRunner.init( TestRunner.java:171)
    at org.testng.TestRunner.<init>(TestRunner.java:137)

I managed to get this on a small multi-module project, right clicking on the test and selecting run.

After this failure, I viewed the run configuration settings, and clicked save (the correct module appeared to be selected in the configuration) and reran the test to see it pass.

I recall changing some things in how the configuration dialog is created so this may have introduced something odd on the autogenerated configuration and I'm currently looking at this now.

Hopefully this is the same exception you guys are seeing and its not another weirdness...

Mark



On 3/8/07, Nebiyu Yohannes <testn...@opensymphony.com> wrote:

Justin Lee

unread,
Mar 12, 2007, 7:46:46 AM3/12/07
to testn...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

That's about what I've been seeing, yes.

Mark Derricutt wrote:
> Does this look like the exception/stacktrace:
>
> org.testng.TestNGException:
> Cannot find class in classpath: com.theoryinpractice.MyTest
> at org.testng.xml.XmlClass.getSupportClass(XmlClass.java:45)
> at org.testng.internal.Utils.xmlClassesToClasses(Utils.java:82)
> at org.testng.TestRunner.initMethods(TestRunner.java:255)
> at org.testng.TestRunner.init(TestRunner.java:201)
> at org.testng.TestRunner.init( TestRunner.java:171)
> at org.testng.TestRunner.<init>(TestRunner.java:137)
>
> I managed to get this on a small multi-module project, right clicking on
> the test and selecting run.
>
> After this failure, I viewed the run configuration settings, and clicked
> save (the correct module appeared to be selected in the configuration)
> and reran the test to see it pass.
>
> I recall changing some things in how the configuration dialog is created
> so this may have introduced something odd on the autogenerated
> configuration and I'm currently looking at this now.
>
> Hopefully this is the same exception you guys are seeing and its not
> another weirdness...
>
> Mark
>
>
>

> On 3/8/07, *Nebiyu Yohannes* <testn...@opensymphony.com


> <mailto:testn...@opensymphony.com>> wrote:
>
>
> The only exception I was seeing is the ClassNotFoundException from
> the test runner.
>
>
>
> >

- --


Justin Lee
http://www.antwerkz.com
AIM : evan chooly
Skype : evanchooly
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)

iD8DBQFF9T2mJnQfEGuJ90MRA8uYAKCsULwy3xndhbowjxcBCJP8X6xCTgCfW7FL
D+rq3GxBFLsHW+fBFdDFTno=
=0KBj
-----END PGP SIGNATURE-----

Nebiyu Yohannes

unread,
Mar 12, 2007, 3:48:42 PM3/12/07
to testn...@googlegroups.com
Yes, that's what I'm seeing.

Thanks.


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

http://forums.opensymphony.com/thread.jspa?threadID=69217&messageID=131777#131777

jkuh...@gmail.com

unread,
Mar 12, 2007, 4:30:05 PM3/12/07
to testng-dev
Yes it is. ....I have more runtime behavior info though. With me it
happens on a shared testng config run using a package name as "what to
run" and a search path of all classes in module to find the class.

Having just had it happen like 2 minutes ago I also remember noticing
that when going to edit the config to see what was wrong the module
classpath to use was null / blank. Even weirder than that was on a
different test configured in a similar fashion I had restarted idea
and tried to run a shared test config that was working prior to the
restart but had the class resolution issues again ...When going into
the edit menu all looked fine to me, with the one exception that the
test name on the left hand side was slightly greyed out indicating
some pending state needed saving...After hitting apply on that config
(after not having changed anything) it worked again.

I wish it was a public project or I'd let you vnc in, but if you
wanted a guinea pig er something for plugin changes feel free to ping
me.

On Mar 12, 3:06 am, "Mark Derricutt" <m...@talios.com> wrote:
> Does this look like the exception/stacktrace:
>
> org.testng.TestNGException:
> Cannot find class in classpath: com.theoryinpractice.MyTest
> at org.testng.xml.XmlClass.getSupportClass(XmlClass.java:45)
> at org.testng.internal.Utils.xmlClassesToClasses(Utils.java:82)
> at org.testng.TestRunner.initMethods(TestRunner.java:255)
> at org.testng.TestRunner.init(TestRunner.java:201)

> at org.testng.TestRunner.init(TestRunner.java:171)


> at org.testng.TestRunner.<init>(TestRunner.java:137)
>
> I managed to get this on a small multi-module project, right clicking on the
> test and selecting run.
>
> After this failure, I viewed the run configuration settings, and clicked
> save (the correct module appeared to be selected in the configuration) and
> reran the test to see it pass.
>
> I recall changing some things in how the configuration dialog is created so
> this may have introduced something odd on the autogenerated configuration
> and I'm currently looking at this now.
>
> Hopefully this is the same exception you guys are seeing and its not another
> weirdness...
>
> Mark
>

Mark Derricutt

unread,
Mar 12, 2007, 4:07:09 PM3/12/07
to testn...@googlegroups.com
On 3/13/07, Nebiyu Yohannes <testn...@opensymphony.com> wrote:

Yes, that's what I'm seeing.


Cool, didn't manage to get anywhere with it last night as bad weather completely killed my network connection for ages (wireless sucks in heavy storms, must switch to dsl).  Hopefully I'll get to it tonight.

Mark

Mark Derricutt

unread,
Mar 12, 2007, 5:02:50 PM3/12/07
to testn...@googlegroups.com
I have a suspicion that a change I made is no longer triggering the correct JDK settings to be saved, at least I'm on the right track and reproduce the problem this time :)

Mark Derricutt

unread,
Mar 13, 2007, 4:39:27 AM3/13/07
to testn...@googlegroups.com
Fixed.  A change I'd made prior to the last release worked around an interim problem under the Selena EAPs and I'd used a slightly wrong API in configuring the classpath.  Having some network issues at the moment but should have a release out in the morning.

mark

Mark Derricutt

unread,
Mar 13, 2007, 5:05:20 AM3/13/07
to testn...@googlegroups.com
Managed to get an upload going - it should be in the plugin manager now - or download from:

  http://plugins.intellij.net/plugin/?action=download&id=3526

Mark

Nebiyu Yohannes

unread,
Mar 13, 2007, 2:07:55 PM3/13/07
to testn...@googlegroups.com
I was able to get the latest through the plug-in manager. Now when I do a right-click and run on a new test method I get the below error. I'm on IDEA 6.0.4 (build #6148). When I try to open the TestNG run/debugconfiguration panel there is nothing there.

My old test classes and methods in my project are still OK.

----------------------------

Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(52,674),button=1,modifiers=Button1,clickCount=1] on ###overrideRedirect###: com.intellij.openapi.project.Project.getBaseDir()Lcom/intellij/openapi/vfs/VirtualFile;
java.lang.NoSuchMethodError: com.intellij.openapi.project.Project.getBaseDir()Lcom/intellij/openapi/vfs/VirtualFile;
at com.theoryinpractice.testng.model.TestData.getWorkingDirectory(TestData.java:139)
at com.theoryinpractice.testng.model.TestData.getProperty(TestData.java:130)
at com.theoryinpractice.testng.TestNGConfiguration.getProperty(TestNGConfiguration.java:125)
at com.intellij.execution.util.JavaParametersUtil.configureConfiguration(JavaParametersUtil.java:39)
at com.theoryinpractice.testng.TestNGRunnableState.createJavaParameters(TestNGRunnableState.java:149)
at com.intellij.execution.configurations.JavaCommandLineState.getJavaParameters(JavaCommandLineState.java:30)
at com.intellij.execution.runners.RunStrategy.executeCommandLine(RunStrategy.java:53)
at com.intellij.execution.runners.RunStrategy.a(RunStrategy.java:88)
at com.intellij.execution.runners.RunStrategy.access$000(RunStrategy.java:71)
at com.intellij.execution.runners.RunStrategy$3.run(RunStrategy.java:3)
at com.intellij.execution.impl.ExecutionManagerImpl$1.run(ExecutionManagerImpl.java:11)
at com.intellij.execution.impl.ExecutionManagerImpl.compileAndRun(ExecutionManagerImpl.java:31)
at com.intellij.execution.runners.RunStrategy.execute(RunStrategy.java:17)
at com.intellij.execution.runners.RunStrategy.execute(RunStrategy.java:82)
at com.intellij.execution.actions.RunContextAction.perform(RunContextAction.java:14)
at com.intellij.execution.actions.BaseRunConfigurationAction.actionPerformed(BaseRunConfigurationAction.java:3)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:14)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:8)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:98)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:200)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:2)
at java.awt.Component.processMouseEvent(Component.java:5501)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5266)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3968)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:8)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:42)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:73)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)


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

http://forums.opensymphony.com/thread.jspa?threadID=69217&messageID=132147#132147

Mark Derricutt

unread,
Mar 13, 2007, 2:17:55 PM3/13/07
to testn...@googlegroups.com
Ahh crap - I should really compile against IDEA 6 and not do things late at night :(  I think I just hit another Selena only method :(  Hang ten ;-)

Mark

Nebiyu Yohannes

unread,
Mar 13, 2007, 3:17:07 PM3/13/07
to testn...@googlegroups.com
No problem.

There's no hurry on this since the older version 0.5.7 plug-in still is a usable workaround for our needs.

Thanks for the efforts.


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

http://forums.opensymphony.com/thread.jspa?threadID=69217&messageID=132199#132199

Mark Derricutt

unread,
Mar 13, 2007, 4:14:46 PM3/13/07
to testn...@googlegroups.com
Just posted 1.0.2 which uses the deprecated APIs and doesn't have the class-not-found errors.  Give it a whirl...

On 3/14/07, Nebiyu Yohannes < testn...@opensymphony.com> wrote:

No problem.

Nebiyu Yohannes

unread,
Mar 13, 2007, 6:09:41 PM3/13/07
to testn...@googlegroups.com
It's working for me now.

Thanks for the quick turnaround time.


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

http://forums.opensymphony.com/thread.jspa?threadID=69217&messageID=132241#132241

Mark Derricutt

unread,
Mar 13, 2007, 6:20:27 PM3/13/07
to testn...@googlegroups.com
Excellent.

On 3/14/07, Nebiyu Yohannes <testn...@opensymphony.com> wrote:
Reply all
Reply to author
Forward
0 new messages