Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » JUnit testing
JUnit testing [message #174940] Mon, 16 October 2006 16:01 Go to next message
Eclipse UserFriend
Originally posted by: dehler.ramius.net

Netbeans has a built in junit test harness with automated junit test
creation, packaging and execution. How do I get eclipse to work with a
junit this way? Is there a quick tutorial somewhere for a helloworld
application where you can generate and execute a junit test. It doesn't
seem to work out of the box, creating a junit test creates a class that
imports junit.framework.TestCase; and it can't even resolve the import.
Any help would be appreciated.

Thanks,
Dwain
Re: JUnit testing [message #174948 is a reply to message #174940] Mon, 16 October 2006 16:20 Go to previous message
Eclipse UserFriend
Originally posted by: wayne.beaton._NOSPAM_eclipse.org

Dwain wrote:
> Netbeans has a built in junit test harness with automated junit test
> creation, packaging and execution. How do I get eclipse to work with a
> junit this way? Is there a quick tutorial somewhere for a helloworld
> application where you can generate and execute a junit test. It doesn't
> seem to work out of the box, creating a junit test creates a class that
> imports junit.framework.TestCase; and it can't even resolve the import.
> Any help would be appreciated.
>
> Thanks,
> Dwain
>

You can explicitly add the JUnit JARs on the first page of the creation
wizard (there's a hyperlink at the bottom of the page).

I have an older screen cam that demonstrates how to use JUnit from
Eclipse (at the time I captured the screen cam, Eclipse automatically
added the junit.jar to the build path), but it still has some
interesting stuff in it and is mostly current.

http://www.eclipse.org/downloads/download.php?r=1&file=/ technology/phoenix/demos/testfirst/testfirst.html

Wayne
Previous Topic:Weblogic plugin in eclipse, cant start server
Next Topic:Eclipse Tab Apperance (missing title)
Goto Forum:
  


Current Time: Mon May 06 04:23:32 GMT 2024

Powered by FUDForum. Page generated in 0.08355 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top