更新时间:2023-11-19 23:27:28
您尝试将 -consolelog
添加到您的 eclipse.ini 文件,并检查您的JUnit会话在哪里生成?
在这个线程,OP实现了他的xml文件是指错误的测试课程。
Eclipse is not suspending on an uncaught runtime exception during debugging of a Junit test. I've tried:
All to no avail.
Debugging without the testrunner (ie: via a class with its own main method) works, ie: eclipse suspends on the line where the exception occurs.
Did you try adding -consolelog
to your eclipse.ini file and check what your JUnit session produce there?
In this thread, the OP realized his xml file was referring to the wrong testing class.