This article will show you how to set Eclipse and
your system environment to run JUnit test cases from within Eclipse. It
will also walk you through a local and a remote debugging case.
JUnit has been around for a while and many people
already know how to write and run JUnit tests. The most common
execution environment for JUnit tests is either from a command prompt
or from an Ant script. These two environments provide an unattended
execution support and the latter has even a pretty output formatter
(<formatter>).
This article has moved to its
new home. Please take a moment to
update your favorites. You can continue to read the rest of the artcile
by following this link.
System Information:
- Windows XP Pro
- JDK 1.4.2_03
- Eclipse 3.2
- JUnit 3.8.1
About the Author
Levent
Gurses is a Washington, DC-based technology consultant. He is also the
co-founder of Jacoozi,
an integrated solutions provider based in Alexandria, VA. In his
professional life Levent helps clients overcome their J2EE challenges
and develop leaner and meaner software development practices. Most of
his free time goes in reading and motorcycle racing.