Having trouble with XTest

View: New views
3 Messages — Rating Filter:   Alert me  

Having trouble with XTest

by David Van Couvering-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I want to add XTest support to my existing module.  All the right files appear to be there, and XTest shows up on the menu for the project (e.g. XTest->Run Unit Tests).  But when I try to run my unit tests I get:

Users/David/code/netbeans/trunk/main/nbbuild/templates/xtest.xml:69: taskdef class org.netbeans.xtest.usertasks.XTestActionTask cannot be found

I looked, and XTest is not available from the Plugins "Available" tab nor is it shown as installed.  Something's definitely off here.  Any tips much appreciated...

Thanks,

David

--
David W. Van Couvering
http://davidvancouvering.blogspot.com

Re: Having trouble with XTest

by tomwheel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, May 2, 2008 at 5:51 PM, David Van Couvering
<david@...> wrote:

> I want to add XTest support to my existing module.  All the right files
> appear to be there, and XTest shows up on the menu for the project (e.g.
> XTest->Run Unit Tests).  But when I try to run my unit tests I get:
>
>  Users/David/code/netbeans/trunk/main/nbbuild/templates/xtest.xml:69:
> taskdef class org.netbeans.xtest.usertasks.XTestActionTask cannot be found
>
> I looked, and XTest is not available from the Plugins "Available" tab nor is
> it shown as installed.  Something's definitely off here.  Any tips much
> appreciated...

It's my understanding that XTest is going away in the future in favor
of a much simpler approach:

    http://wiki.netbeans.org/FitnessTestsWithoutX

Work on this is already underway, so if you're working on a trunk
build, that might explain it.  In that case, I'd suggest filing a bug
report to have the XTest context menu removed, although I guess maybe
it is still needed to support older platform apps which still use
XTest.

--
Tom Wheeler
http://www.tomwheeler.com/

Re: Having trouble with XTest

by Jesse Glick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

David Van Couvering wrote:
> I want to add XTest support to my existing module.  All the right files
> appear to be there, and XTest shows up on the menu for the project (e.g.
> XTest->Run Unit Tests).  But when I try to run my unit tests I get:
>
> Users/David/code/netbeans/trunk/main/nbbuild/templates/xtest.xml:69: taskdef class org.netbeans.xtest.usertasks.XTestActionTask cannot be found

Try

ant -f xtest/build.xml