JUnit testing [message #174940] |
Mon, 16 October 2006 16:01 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.08355 seconds