[英]JUnit 5 test case runs, but not in debug mode
I have two projects in eclipse.我在 eclipse 有两个项目。 The
3DCoordinates
project calculates 3D coordinates and makes the conversion from one to another. 3DCoordinates
项目计算 3D 坐标并进行从一个到另一个的转换。 The second AstroCoordinates
project accesses the first project but defines coordinate systems used in astronomy only.第二个
AstroCoordinates
项目访问第一个项目,但定义了仅用于天文学的坐标系。
All the JUnit 5 tests for 3DCoordinates
run now without problems. 3DCoordinates 的所有
3DCoordinates
5 测试现在都可以正常运行。 I wrote for the AstroCoordinates
in a similar manner a coordinate class called HorizontalCoordinates
with the appropriate tests.我以类似的方式为
AstroCoordinates
编写了一个名为HorizontalCoordinates
ntalCoordinates 的坐标 class,并进行了适当的测试。 The tests have still errors when running, but, coming to my problem, when I try to debug them, the test stops after opening the Class.class
file.运行时测试仍然有错误,但是,当我尝试调试它们时,测试在打开
Class.class
文件后停止。
I searched the Internet, but couldn't find an explanation for this – to me – strange behaviour.我搜索了互联网,但无法找到解释——对我来说——奇怪的行为。 Do you know about this issue?
你知道这个问题吗? What can be the reason for it?
可能是什么原因?
Edit: Here, you can see the result of the normal test run:编辑:在这里,您可以看到正常测试运行的结果:
The debug test stops without any error message, after the
Class.class
file opens.在
Class.class
文件打开后,调试测试停止且没有任何错误消息。 No error messages occur.
不会出现错误消息。
If your class is actually named Class, try renaming it.如果您的 class 实际上命名为 Class,请尝试重命名。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.