Re: JUNIT questions
- From: Mark Jeffcoat <jeffcoat@xxxxxxxxxxxxxxx>
- Date: Wed, 28 Feb 2007 05:18:58 -0600
"Taria" <mchew02@xxxxxxxxxxx> writes:
Did it? Well, sorta. The red bar flashes at me and I am clueless how
to go about debugging an error that JUNIT has found. All the
tutorials I have gone through usually addresses the green bar but not
what to do when the method is not functioning properly. My experience
with past debuggers is that some step you thru the program's execution
and you are able to set up breaks, examine values of variables, etc.
So, how do you use JUNIT the same way? Am I looking at JUNIT the
wrong way?
JUnit's not a debugger; it runs tests suites, and reports
on whether they pass or fail.
If they fail, JUnit can report which test failed, along with
the difference between the expected value and the actual value
or the exception that was thrown. (I run JUnit from Ant, so
I don't know how you'd get that information in your IDE.)
If you'd like to use a debugger to fix the failure, you're
welcome to do it, but you need to go find a debugger. After
you've made your changes, use JUnit to re-run your tests.
--
Mark Jeffcoat
Austin, TX
.
- Follow-Ups:
- Re: JUNIT questions
- From: andrewmcdonagh
- Re: JUNIT questions
- References:
- JUNIT questions
- From: Taria
- JUNIT questions
- Prev by Date: Re: Disable ESC on JOptionPane
- Next by Date: Re: JUNIT questions
- Previous by thread: Re: JUNIT questions
- Next by thread: Re: JUNIT questions
- Index(es):
Relevant Pages
|