| Author |
Junit errors.
|
jay vas
Ranch Hand
Joined: Aug 30, 2005
Posts: 407
|
|
Hi guys : When junit fails in error (not in failure).... How does one go about debugging ?
I haven't found a log file anywhere... maybe im missing something. and I have a test that , literally, just abruptly ends with an error and failure message. It reports, as the error message, some sort of reflection related error message. I have even made the entire class empty.
I assume it is path related... but I have no idea how why this particular package, which is similar to other packages in my source tree, is not seen by junit (all packages are apropriately nested underneath the test/ folder in my build).
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26192
|
|
|
Can you post the error?
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
jay vas
Ranch Hand
Joined: Aug 30, 2005
Posts: 407
|
|
Unfortunately, the error is alas gone, i deleted the file.
I really wish i had been able to find out the "real" cause. In general.... is there a reason junit would crash due to a reflection error on an empty unit test which did not throw exceptions?
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26192
|
|
|
It shouldn't which just tells us that it was something subtle. I'm glad your error went away "by itself" but agree that makes it more of a mystery!
|
 |
Arka Sharma
Ranch Hand
Joined: Jun 15, 2011
Posts: 102
|
|
Hi,
If you are using eclipse then you can use eclipse debugger to debug a junit test just like a normal java application.
|
 |
 |
|
|
subject: Junit errors.
|
|
|